Nui Engine
A game engine framework
|
Public Member Functions | |
virtual void | OnInit (Nui::ECS::Context *ctx) |
Called when the system is initialized. | |
virtual void | OnUpdate (Nui::ECS::Context *ctx, const Nui::F64 dt) |
Called when the system is updated (every frame) | |
virtual void | OnShutdown (Nui::ECS::Context *ctx) |
Called when the system is shutdown. | |
virtual void | OnEvent (class Nui::ECS::Context *ctx, const Nui::ECS::Events::OnEntityCreate &event) override |
Pure virtual function for handling event callback. | |
virtual void | OnEvent (class Nui::ECS::Context *ctx, const Nui::ECS::Events::OnEntityDestroy &event) override |
Pure virtual function for handling event callback. | |
virtual void | OnEvent (class Nui::ECS::Context *ctx, const Nui::ECS::Events::OnComponentAdd< TestComponent > &event) override |
Pure virtual function for handling event callback. | |
virtual void | OnEvent (class Nui::ECS::Context *ctx, const Nui::ECS::Events::OnComponentRemove< TestComponent > &event) override |
Pure virtual function for handling event callback. | |
virtual void | OnEvent (class Nui::ECS::Context *ctx, const TestEvent &event) override |
Pure virtual function for handling event callback. | |
![]() | |
virtual | ~SystemBase ()=default |
Default virtual destructor. | |
bool | IsEnabled () const noexcept |
Check if the system is enabled. | |
void | SetIsEnabled (bool enabled) noexcept |
Set if the system is enabled. | |
![]() | |
virtual | ~EventSubscriber ()=default |
Virtual default destructor. | |
![]() | |
virtual | ~EventSubscriberBase ()=default |
Virtual default destructor. | |
![]() | |
virtual | ~EventSubscriber ()=default |
Virtual default destructor. | |
![]() | |
virtual | ~EventSubscriber ()=default |
Virtual default destructor. | |
![]() | |
virtual | ~EventSubscriber ()=default |
Virtual default destructor. | |
![]() | |
virtual | ~EventSubscriber ()=default |
Virtual default destructor. | |
Public Attributes | |
bool | m_initialized { false } |
Nui::I32 | m_testComponentCount { 0 } |
Nui::I32 | m_eventVal { 0 } |
|
inlineoverridevirtual |
Pure virtual function for handling event callback.
context | Pointer to the ECS Context |
event | Const reference to the type of event |
Implements Nui::ECS::EventSubscriber< Nui::ECS::Events::OnComponentAdd< TestComponent > >.
|
inlineoverridevirtual |
Pure virtual function for handling event callback.
context | Pointer to the ECS Context |
event | Const reference to the type of event |
Implements Nui::ECS::EventSubscriber< Nui::ECS::Events::OnComponentRemove< TestComponent > >.
|
inlineoverridevirtual |
Pure virtual function for handling event callback.
context | Pointer to the ECS Context |
event | Const reference to the type of event |
Implements Nui::ECS::EventSubscriber< Nui::ECS::Events::OnEntityCreate >.
|
inlineoverridevirtual |
Pure virtual function for handling event callback.
context | Pointer to the ECS Context |
event | Const reference to the type of event |
Implements Nui::ECS::EventSubscriber< Nui::ECS::Events::OnEntityDestroy >.
|
inlineoverridevirtual |
Pure virtual function for handling event callback.
context | Pointer to the ECS Context |
event | Const reference to the type of event |
Implements Nui::ECS::EventSubscriber< TestEvent >.
|
inlinevirtual |
Called when the system is initialized.
ctx | Pointer to the ECS context |
Reimplemented from Nui::ECS::SystemBase.
|
inlinevirtual |
Called when the system is shutdown.
ctx | Pointer to the ECS context |
Reimplemented from Nui::ECS::SystemBase.
|
inlinevirtual |
Called when the system is updated (every frame)
ctx | Pointer to the ECS context |
dt | Time since last frame |
Reimplemented from Nui::ECS::SystemBase.