createEntity
ECS::createEntity
Creates a new Entity.
Declaration
Entity createEntity();
Parameters
None.
Returns
A unique identifier for the Entity.
Notes
Declaration
Entity createEntity(const std::string& name);
Parameters
Name |
Type |
Description |
---|---|---|
name |
const std::string& |
The name of the Entity to create. If the name is the empty string |
Returns
A unique identifier for the Entity.
Notes
When created, an Entity already has a Transform Component.
If name
is not the empty string ""
, the Entity names are unique, which signifies that two Entities can not have the same name.