This class provides a reference to a command entity, allowing operations such as setting, removing components, and cloning the entity.
More...
#include <command.hpp>
This class provides a reference to a command entity, allowing operations such as setting, removing components, and cloning the entity.
◆ clone()
◆ destroy()
| void co_ecs::command_entity_ref::destroy |
( |
| ) |
|
|
inline |
◆ operator entity()
| co_ecs::command_entity_ref::operator entity |
( |
| ) |
const |
|
inlinenoexcept |
Conversion operator to entity.
- Returns
- The underlying entity.
◆ remove()
Removes a component of type C from the entity.
- Template Parameters
-
| C | Component type to remove. |
- Returns
- A reference to the command_entity_ref for chaining.
◆ set()
template<component C, typename... Args>
Sets a component of type C for the entity.
- Template Parameters
-
| C | Component type to set. |
| Args | Argument types for the component constructor. |
- Parameters
-
| args | Arguments for the component constructor. |
- Returns
- A reference to the command_entity_ref for chaining.
◆ command_writer
The documentation for this class was generated from the following file: