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