#include <iEntityScene.h>
Inherits std::enable_shared_from_this< iEntityScene >.
◆ addComponent() [1/2]
template<typename T >
T & igor::iEntityScene::addComponent |
( |
iEntityID |
entityID, |
|
|
const T & |
component |
|
) |
| |
adds component to entity
- Parameters
-
component | the component to add |
◆ addComponent() [2/2]
template<typename T >
T & igor::iEntityScene::addComponent |
( |
iEntityID |
entityID, |
|
|
const T & |
component |
|
) |
| |
◆ addUserComponent() [1/2]
template<typename T >
T & igor::iEntityScene::addUserComponent |
( |
iEntityID |
entityID, |
|
|
const T & |
component |
|
) |
| |
adds custom component to entity
this is meant for types unknown to Igor
- Parameters
-
component | the component to add |
◆ addUserComponent() [2/2]
template<typename T >
T & igor::iEntityScene::addUserComponent |
( |
iEntityID |
entityID, |
|
|
const T & |
component |
|
) |
| |
◆ clear()
void igor::iEntityScene::clear |
( |
| ) |
|
◆ createEntity()
iEntity igor::iEntityScene::createEntity |
( |
const iaString & |
name = "" , |
|
|
bool |
active = true |
|
) |
| |
◆ destroyEntity() [1/2]
void igor::iEntityScene::destroyEntity |
( |
const iEntity & |
entity | ) |
|
destroys an entity
- Parameters
-
entity | the entity to destroy |
◆ destroyEntity() [2/2]
void igor::iEntityScene::destroyEntity |
( |
iEntityID |
entityID | ) |
|
destroys an entity by id
- Parameters
-
◆ getBounds()
const iAABoxd & igor::iEntityScene::getBounds |
( |
| ) |
const |
◆ getComponent() [1/2]
template<typename T >
T & igor::iEntityScene::getComponent |
( |
iEntityID |
entityID | ) |
|
- Returns
- reference to component for given entity
- Parameters
-
◆ getComponent() [2/2]
template<typename T >
T & igor::iEntityScene::getComponent |
( |
iEntityID |
entityID | ) |
|
◆ getQuadtree()
iQuadtreed & igor::iEntityScene::getQuadtree |
( |
| ) |
const |
◆ getRegistry()
void * igor::iEntityScene::getRegistry |
( |
| ) |
const |
◆ getUserComponent() [1/2]
template<typename T >
T & igor::iEntityScene::getUserComponent |
( |
iEntityID |
entityID | ) |
|
- Returns
- reference to custom component of given entity
- Parameters
-
component | the component to add |
◆ getUserComponent() [2/2]
template<typename T >
T & igor::iEntityScene::getUserComponent |
( |
iEntityID |
entityID | ) |
|
◆ hasQuadtree()
bool igor::iEntityScene::hasQuadtree |
( |
| ) |
const |
- Returns
- true if quadtree present
◆ initializeQuadtree()
void igor::iEntityScene::initializeQuadtree |
( |
const iaRectangled & |
box, |
|
|
const uint32 |
splitThreshold = 4 , |
|
|
const uint32 |
maxDepth = 16 |
|
) |
| |
initialize quadtree
- Parameters
-
box | volume of the whole quadtree |
splitThreshold | threshold count of objects on a node before splitting the node |
maxDepth | the maximum depth of the tree |
◆ removeComponent() [1/2]
template<typename T >
void igor::iEntityScene::removeComponent |
( |
iEntityID |
entityID | ) |
|
removes component of given entity with given type
◆ removeComponent() [2/2]
template<typename T >
void igor::iEntityScene::removeComponent |
( |
iEntityID |
entityID | ) |
|
◆ setBounds()
void igor::iEntityScene::setBounds |
( |
const iAABoxd & |
box | ) |
|
◆ tryGetComponent() [1/2]
template<typename T >
T * igor::iEntityScene::tryGetComponent |
( |
iEntityID |
entityID | ) |
|
- Returns
- pointer to component for given entity. nullptr if component does not exist
- Parameters
-
◆ tryGetComponent() [2/2]
template<typename T >
T * igor::iEntityScene::tryGetComponent |
( |
iEntityID |
entityID | ) |
|
◆ tryGetUserComponent() [1/2]
template<typename T >
T * igor::iEntityScene::tryGetUserComponent |
( |
iEntityID |
entityID | ) |
|
- Returns
- pointer to custom component for given entity. nullptr if component does not exist
- Parameters
-
◆ tryGetUserComponent() [2/2]
template<typename T >
T * igor::iEntityScene::tryGetUserComponent |
( |
iEntityID |
entityID | ) |
|
◆ iEntitySceneDeleter
◆ iEntitySystemModule
The documentation for this class was generated from the following files: