class ComponentMgr
Base class from which all component managers inherit.
File location: framework/cauldron/framework/inc/core/component.h
Construction
Return type |
Description |
---|---|
ComponentMgr ()
ComponentMgr construction.
|
Methods
Return type |
Description |
---|---|
Spawn’s a new component. Must be overridden by derived classes.
|
|
const wchar_t* |
ComponentType () const = 0
Get the component type string representation.
|
uint32_t |
GetComponentCount () const
Get the number of managed components.
|
GetComponent (const Entity * pEntity) const
Get the component associated with a specific “Entity“ instance.
|
|
const std::vector<Component *>& |
GetComponentList () const
Get the full list of managed components from this ComponentMgr.
|
void |
Initialize ()
ComponentMgr Initialization. Override as needed.
|
void |
Shutdown ()
ComponentMgr Shutdown. Override as needed.
|
void |
UpdateComponents (double deltaTime)
Updates all managed components. Override to {} when update support isn’t needed or to support other functionality.
|
void |
StartManagingComponent (Component * pComponent)
Indicates the ComponentMgr should start managing the passed in “Component“.
|
void |
StopManagingComponent (Component * pComponent)
Indicates the ComponentMgr should stop managing the passed in “Component“.
|
void |
OnFocusLost ()
Focus lost.
|
void |
Focus gained.
|
Detailed description
Base class from which all component managers inherit.
Construction
ComponentMgr
ComponentMgr construction.
Methods
SpawnComponent
virtual Component * SpawnComponent (Entity * pOwner, ComponentData * pData) = 0
Spawn’s a new component. Must be overridden by derived classes.
ComponentType
Get the component type string representation.
GetComponentCount
Get the number of managed components.
GetComponent
Get the component associated with a specific Entity
instance.
GetComponentList
const std::vector<Component *>& GetComponentList () const
Get the full list of managed components from this ComponentMgr.
Initialize
ComponentMgr Initialization. Override as needed.
Shutdown
ComponentMgr Shutdown. Override as needed.
UpdateComponents
Updates all managed components. Override to {} when update support isn’t needed or to support other functionality.
StartManagingComponent
void StartManagingComponent (Component * pComponent)
Indicates the ComponentMgr should start managing the passed in Component
.
StopManagingComponent
void StopManagingComponent (Component * pComponent)
Indicates the ComponentMgr should stop managing the passed in Component
.
OnFocusLost
Focus lost.
OnFocusGained
Focus gained.