GUInity
|
#include <Factory.hpp>
Public Member Functions | |
Factory () | |
~Factory () | |
Static Public Member Functions | |
static shared_ptr< Actor > | CreateActor (string name) |
static void | DestroyActor (weak_ptr< Actor > actor) |
static void | CreateReferenceActor (shared_ptr< Actor > realActor) |
static shared_ptr< Actor > | CreateEditorActor (string name) |
static void | DeserializeComponents (shared_ptr< Actor > actor, vector< shared_ptr< ComponentDescription >> compDescs) |
static shared_ptr< Actor > | DeserializeActor (ActorDescription &desc) |
![]() | |
static void | addObserver (shared_ptr< Observer > observer) |
static void | removeObserver (shared_ptr< Observer > observer) |
Additional Inherited Members | |
![]() | |
static void | notify (ComponentEventType type, shared_ptr< Component > component, bool isEditor) |
static void | notify (ActorEventType type, shared_ptr< Actor > actor, bool isEditor) |
This class is responsible for creating new actors. Actors should not be created by hand, but using the Factory instead. This class also holds the model of each Component for the Prototype Design Pattern.
|
inline |
Default Constructor
|
inline |
Default Destructory
|
static |
|
static |
|
static |
Deserialize an Actor
|
static |
Deserialize a list of Components and attaches them to an Actor