|
Nui Engine
A game engine framework
|
Base class for all ECS systems. More...
#include <System.h>
Public Member Functions | |
| virtual | ~SystemBase ()=default |
| Default virtual destructor. | |
| virtual void | OnInit (Context *ctx) |
| Called when the system is initialized. | |
| virtual void | OnUpdate (Context *ctx, const F64 dt) |
| Called when the system is updated (every frame) | |
| virtual void | OnShutdown (Context *ctx) |
| Called when the system is shutdown. | |
| bool | IsEnabled () const noexcept |
| Check if the system is enabled. | |
| void | SetIsEnabled (bool enabled) noexcept |
| Set if the system is enabled. | |
Base class for all ECS systems.
|
inlinenoexcept |
Check if the system is enabled.
|
inlinevirtual |
Called when the system is initialized.
| ctx | Pointer to the ECS context |
Reimplemented in Nui::Systems::RenderSystem, Nui::Systems::TransformSystem, and TestSystem.
|
inlinevirtual |
Called when the system is shutdown.
| ctx | Pointer to the ECS context |
Reimplemented in Nui::Systems::RenderSystem, Nui::Systems::TransformSystem, and TestSystem.
|
inlinevirtual |
Called when the system is updated (every frame)
| ctx | Pointer to the ECS context |
| dt | Time since last frame |
Reimplemented in Nui::Systems::RenderSystem, Nui::Systems::TransformSystem, and TestSystem.
|
inlinenoexcept |
Set if the system is enabled.
| enabled | True if the system is enabled |