#include <iEntityComponent.h>
Inherited by igor::iAnimationComponent, igor::iBehaviourComponent, igor::iCameraComponent, igor::iCircleComponent, igor::iGlobalBoundaryComponent, igor::iLightComponent, igor::iMeshReferenceComponent, igor::iMeshRenderComponent, igor::iOctreeComponent, igor::iPrefabComponent, igor::iQuadtreeComponent, igor::iSphereComponent, igor::iSpriteRenderComponent, igor::iTransformComponent, and igor::iVelocityComponent.
entity component base class
◆ iEntityComponent()
igor::iEntityComponent::iEntityComponent |
( |
| ) |
|
◆ ~iEntityComponent()
virtual igor::iEntityComponent::~iEntityComponent |
( |
| ) |
|
|
virtualdefault |
◆ getCopy()
- Returns
- a copy of this component
◆ getEntity()
iEntityPtr igor::iEntityComponent::getEntity |
( |
| ) |
const |
|
protected |
◆ getID()
- Returns
- entity component id
◆ getInfo()
std::vector< iaString > igor::iEntityComponent::getInfo |
( |
| ) |
const |
|
virtual |
- Returns
- a set of info strings
Reimplemented in igor::iBehaviourComponent, igor::iCameraComponent, igor::iCircleComponent, igor::iGlobalBoundaryComponent, igor::iLightComponent, igor::iMeshReferenceComponent, igor::iMeshRenderComponent, igor::iOctreeComponent, igor::iPrefabComponent, igor::iQuadtreeComponent, igor::iSphereComponent, igor::iSpriteRenderComponent, igor::iTransformComponent, and igor::iVelocityComponent.
◆ getState()
- Returns
- state of this component
◆ getVersion()
uint16 igor::iEntityComponent::getVersion |
( |
| ) |
const |
◆ onActivate()
void igor::iEntityComponent::onActivate |
( |
iEntityPtr |
entity | ) |
|
|
protectedvirtual |
callback to activate component
◆ onDeactivate()
void igor::iEntityComponent::onDeactivate |
( |
iEntityPtr |
entity | ) |
|
|
protectedvirtual |
callback to deactivate component
◆ onLoad()
bool igor::iEntityComponent::onLoad |
( |
iEntityPtr |
entity, |
|
|
bool & |
asyncLoad |
|
) |
| |
|
protectedvirtual |
callback for loading component
- Parameters
-
| entity | the entity this component relates to |
[out] | asyncLoad | if true try again if unsuccessful |
- Returns
- true when loading was successful
◆ onUnLoad()
void igor::iEntityComponent::onUnLoad |
( |
iEntityPtr |
entity | ) |
|
|
protectedvirtual |
callback for unload component
◆ setDirty()
IGOR_INLINE void igor::iEntityComponent::setDirty |
( |
| ) |
|
|
inline |
sets component dirty by increasing version
◆ iEntity
◆ iEntityScene
◆ iTransformComponent
The documentation for this class was generated from the following files: