Location for all game related objects.
Constructors
Modifier | Name | Description |
---|
| Level() | |
Destructors
Modifier | Name | Description |
---|
virtual | ~Level() | |
Funções
Acesso | Modificador | Tipo | Nome | Descrição |
---|
public | virtual | void | onActivation() | |
public | | bool | hasActors() | |
public | | const std::vector<Actor*>& | getActors() | |
public | | const std::vector<T*>& | getActors<T>() | |
public | | void | addActor(Actor* inActor) | |
public | | void | watchActors(std::function<void (Actor*)> inNext, std::function<void (const std::string&)> inError = nullptr, std::function<void ()> inComplete = nullptr) | |
public | | bool | hasComponents() | |
public | | const std::vector<Component*>& | getComponents() | |
public | | const std::vector<T*>& | getComponents<T>() | |
public | | void | addComponent(Component* inComponent) | |
public | | void | watchComponents(std::function<void (Component*)> inNext, std::function<void (const std::string&)> inError = nullptr, std::function<void ()> inComplete = nullptr) | |
Properties
Access | Modifier | Type | Name | Description |
---|
private | | std::vector<Actor*> | m_actors | |
private | | std::unique_ptr<Observable<Actor*>> | m_actorObservable | |
private | | std::vector<Component*> | m_components | |
private | | std::unique_ptr<Observable<Component*>> | m_componentObservable | |