|
| | Entity (Registry &ecs) |
| | Construct a new Entity instance with a fresh UUID.
|
| | Entity (Registry &ecs, const UUID &id) |
| | Constructs an Entity with an ID.
|
| | Entity (const Entity &other) |
| | Copy constructor for Entity.
|
| Entity & | operator= (const Entity &other) |
| | Copy assignment operator.
|
| template<typename T> |
| bool | Add (const T &component) const |
| | Add a component to this entity.
|
| template<typename T> |
| bool | Remove () const |
| | Remove a component from this entity.
|
| bool | RemoveAllComponents () const |
| | Remove all components from this entity.
|
| template<typename T> |
| T * | Get () const |
| | Retrieve a pointer to a component of type T.
|
| template<typename T> |
| bool | Has () const |
| | Check if this entity has a component of type T.
|
| const UUID & | GetID () const |
| | Get the unique identifier of this entity.
|
| usize | GetNumComponents () const |
| | Get the number of components attached to this entity.
|
| bool | HasComponents () const |
| | Check if any components are attached to this entity.
|
Lightweight wrapper for manipulating a single entity within the ECS.
Provides an interface to operate on an entity by delegating actions to the underlying Registry, such as adding, removing, checking, or retrieving components.