3#include <GameComponentsPlugin/GameComponentsDLL.h>
5#include <Core/Messages/CommonMessages.h>
6#include <Core/World/Component.h>
7#include <Core/World/World.h>
8#include <Foundation/Time/Time.h>
12 using StorageType = plUInt16;
23 StorageType Running : 1;
64 void SetRunning(
bool bRunning);
65 bool IsRunning()
const;
67 void SetTargetPosition(
const plVec3& vPos);
74 float m_fCurTranslationSpeed = 0;
75 float m_fMaxTranslationSpeed = 1;
76 float m_fTranslationAcceleration = 0;
77 float m_fTranslationDeceleration = 0;
Base class of all component types.
Definition Component.h:25
virtual void SerializeComponent(plWorldWriter &inout_stream) const
Override this to save the current state of the component to the given stream.
Definition Component.cpp:54
virtual void DeserializeComponent(plWorldReader &inout_stream)
Override this to load the current state of the component from the given stream.
Definition Component.cpp:58
Simple component manager implementation that calls an update method on all components every frame.
Definition ComponentManager.h:142
A message sender that sends all messages to the next component derived from plEventMessageHandlerComp...
Definition EventMessage.h:39
A light-weight component that moves the owner object towards a single position.
Definition MoveToComponent.h:45
Reads a world description from a stream. Allows to instantiate that world multiple times in different...
Definition WorldReader.h:47
Stores an entire plWorld in a stream.
Definition WorldWriter.h:13
The plBitflags class allows you to work with type-safe bitflags.
Definition Bitflags.h:82
Definition MoveToComponent.h:22
Definition MoveToComponent.h:11