ECS entity, Component container It is created like this:
Entity &trigger = world.entities.create();
Transform &t = trigger.addComponent<Transform>();
More...
#include <external/RadixEngine/include/radix/Entity.hpp>
ECS entity, Component container It is created like this:
Entity &trigger = world.entities.create();
Transform &t = trigger.addComponent<Transform>();
radix::Entity::Entity |
( |
Entity & |
| ) |
|
|
privatedelete |
radix::Entity::Entity |
( |
Entity && |
| ) |
|
|
privatedelete |
radix::Entity::~Entity |
( |
| ) |
|
|
inline |
template<typename T , typename... TArgs>
T& radix::Entity::addComponent |
( |
TArgs &&... |
mArgs | ) |
|
|
inline |
void radix::Entity::clearComponents |
( |
| ) |
|
template<typename T >
T& radix::Entity::getComponent |
( |
| ) |
const |
|
inline |
std::string radix::Entity::getName |
( |
| ) |
const |
|
inline |
template<typename T >
bool radix::Entity::hasComponent |
( |
| ) |
const |
|
inline |
bool radix::Entity::operator!= |
( |
const Entity & |
o | ) |
const |
|
inline |
bool radix::Entity::operator== |
( |
const Entity & |
o | ) |
const |
|
inline |
template<class T >
void radix::Entity::removeComponent |
( |
| ) |
|
|
inline |
void radix::Entity::setName |
( |
const std::string & |
newName | ) |
|
Entity (instance) identifier.
- Note
- IDs are stable and may be used as permanent access keys, but consider using getName when not referring to a particular unique instance but rather any entity that has.
std::string radix::Entity::name |
|
private |
Entity's name.
Used to find a specific entity from the World entity list.
The documentation for this class was generated from the following files: