Class SceneSystem

Inheritance Relationships

Base Types

Class Documentation

class SceneSystem : public ari::System, public ari::EventSubscriber<events::OnEntityCreated>, public ari::EventSubscriber<events::OnEntityDestroyed>, public ari::EventSubscriber<events::OnComponentAssigned<Camera>>, public ari::EventSubscriber<events::OnComponentRemoved<Camera>>, public ari::EventSubscriber<events::OnComponentAssigned<BoxShape>>, public ari::EventSubscriber<events::OnComponentRemoved<BoxShape>>

Public Functions

SceneSystem()

Constructor.

~SceneSystem()

Destructor.

void Update(World *p_world, UpdateState state)

Update the system.

void Configure(World *p_world)

Configure the system after adding it to the world.

void Unconfigure(World *p_world)

Unconfigure the system before removing it from the world.

Type GetSystemType()

Returns the system type.

bool NeedUpdateOnState(UpdateState state)

Ask the system if needs update on different states.

void Receive(World *world, const events::OnEntityCreated &event)

Called when an event is emitted by the world.

void Receive(World *world, const events::OnEntityDestroyed &event)

Called when an event is emitted by the world.

void Receive(World *world, const events::OnComponentAssigned<Camera> &event)

Called when an event is emitted by the world.

void Receive(World *world, const events::OnComponentRemoved<Camera> &event)

Called when an event is emitted by the world.

void Receive(World *world, const events::OnComponentAssigned<BoxShape> &event)

Called when an event is emitted by the world.

void Receive(World *world, const events::OnComponentRemoved<BoxShape> &event)

Called when an event is emitted by the world.

Protected Functions

void CalcTransform(Node *node, Matrix *parentMat)

Protected Attributes

Camera *m_pActiveCamera
FrameData *m_FrameDatasUnused
FrameData *m_FrameDatasTransforms
FrameData *m_FrameDatasVisible