The Joe Engine
Joe's engine programming playground
|
The Transform Component Manager class. More...
#include <TransformComponentManager.h>
Public Member Functions | |
JETransformComponentManager ()=default | |
Default constructor. More... | |
virtual | ~JETransformComponentManager ()=default |
Destructor (default). More... | |
void | Update (JEEngineInstance *engineInstance) override |
Update transform components. More... | |
void | AddNewComponent (uint32_t entityID) override |
Add new transform component. More... | |
void | RemoveComponent (uint32_t entityID) override |
Remove transform component. More... | |
TransformComponent * | GetComponent (uint32_t entityID) const |
Get transform component. More... | |
const PackedArray< TransformComponent > & | GetComponentList () const |
Get list of transform components. More... | |
![]() | |
JEComponentManager ()=default | |
Default constructor. More... | |
virtual | ~JEComponentManager ()=default |
Destructor (default). More... | |
The Transform Component Manager class.
Contains all transform components in a packed array of data.
|
default |
Default constructor.
No specific behavior.
|
virtualdefault |
Destructor (default).
|
overridevirtual |
Add new transform component.
Adds a new, default-constructed transform component to the packed array of transform components at the specified entity index. Overrides purely virtual function declared in JEComponentManager.
entityID | the id of the entity to add the transform component to |
Implements JoeEngine::JEComponentManager.
TransformComponent * JoeEngine::JETransformComponentManager::GetComponent | ( | uint32_t | entityID | ) | const |
Get transform component.
Gets the transform component attached to the entity ID.
entityID | the entity ID whose transform component to return |
const PackedArray< TransformComponent > & JoeEngine::JETransformComponentManager::GetComponentList | ( | ) | const |
Get list of transform components.
Gets the member list of transform components.
|
overridevirtual |
Remove transform component.
Removes the transform component from the packed array of transform components at the specified entity index. Overrides purely virtual function declared in JEComponentManager.
entityID | the id of the entity to remove the transform component from |
Implements JoeEngine::JEComponentManager.
|
overridevirtual |
Update transform components.
Updates all stored transform components. Currently, updating transform components does nothing. Overrides purely virtual function declared in JEComponentManager.
engineInstance | a reference to the current JEEngineInstance object if needed for certain API calls |
Implements JoeEngine::JEComponentManager.