3#include <Core/ActorSystem/ActorPlugin.h>
4#include <Foundation/Types/UniquePtr.h>
12 PL_DISALLOW_COPY_AND_ASSIGN(
plActor);
22 const void* GetCreatedBy()
const;
31 template <
typename Type>
34 return static_cast<Type*
>(GetPlugin(plGetStaticRTTI<Type>()));
46 return m_State == State::QueuedForDestruction;
50 void UpdateAllPlugins();
57 virtual void Activate();
62 virtual void Update();
72 State m_State = State::New;
Type * GetPlugin() const
Templated overload of GetPlugin() that automatically casts to the desired class type.
Definition Actor.h:32
bool IsActorQueuedForDestruction() const
Checks whether the actor is queued for destruction at the end of the frame.
Definition Actor.h:44
Definition ActorManager.h:28
Definition ActorPlugin.h:9
A hybrid array uses in-place storage to handle the first few elements without any allocation....
Definition HybridArray.h:12
This class holds information about reflected types. Each instance represents one type that is known t...
Definition RTTI.h:30
All classes that should be dynamically reflectable, need to be derived from this base class.
Definition DynamicRTTI.h:86
plStringView represent a read-only sub-string of a larger string, as it can store a dedicated string ...
Definition StringView.h:34
A Unique ptr manages an object and destroys that object when it goes out of scope....
Definition UniquePtr.h:10