|
Nui Engine
A game engine framework
|
ECS system that handles updating transform components. More...
#include <TransformSystem.h>
Public Member Functions | |
| virtual void | OnInit (ECS::Context *ctx) override |
| Initializes the system and subscribes to events. | |
| virtual void | OnUpdate (ECS::Context *ctx, const F64 dt) override |
| Updates the system. | |
| virtual void | OnShutdown (ECS::Context *ctx) override |
| Shuts down the system and unsubscribes from events. | |
Public Member Functions inherited from Nui::ECS::SystemBase | |
| 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. | |
ECS system that handles updating transform components.
This system adds the Transform component to every entity on creation and recalculates the world matrix
|
overridevirtual |
Initializes the system and subscribes to events.
| ctx | Pointer to the ECS Context |
Reimplemented from Nui::ECS::SystemBase.
|
overridevirtual |
Shuts down the system and unsubscribes from events.
| ctx | Pointer to the ECS Context |
Reimplemented from Nui::ECS::SystemBase.
|
overridevirtual |
Updates the system.
| ctx | Pointer to the ECS Context |
| dt | Delta time |
Reimplemented from Nui::ECS::SystemBase.