Nui Engine
A game engine framework
Loading...
Searching...
No Matches
Nui::Systems::TransformSystem Class Reference

ECS system that handles updating transform components. More...

#include <TransformSystem.h>

Inheritance diagram for Nui::Systems::TransformSystem:
Nui::ECS::SystemBase

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.
 

Detailed Description

ECS system that handles updating transform components.

This system adds the Transform component to every entity on creation and recalculates the world matrix

Member Function Documentation

◆ OnInit()

void Nui::Systems::TransformSystem::OnInit ( ECS::Context * ctx)
overridevirtual

Initializes the system and subscribes to events.

Parameters
ctxPointer to the ECS Context

Reimplemented from Nui::ECS::SystemBase.

◆ OnShutdown()

void Nui::Systems::TransformSystem::OnShutdown ( ECS::Context * ctx)
overridevirtual

Shuts down the system and unsubscribes from events.

Parameters
ctxPointer to the ECS Context

Reimplemented from Nui::ECS::SystemBase.

◆ OnUpdate()

void Nui::Systems::TransformSystem::OnUpdate ( ECS::Context * ctx,
const F64 dt )
overridevirtual

Updates the system.

Parameters
ctxPointer to the ECS Context
dtDelta time

Reimplemented from Nui::ECS::SystemBase.


The documentation for this class was generated from the following files: