createEntity

ECS::createEntity

Creates a new Entity.

Declaration

Entity createEntity();

Parameters

None.

Returns

A unique identifier for the Entity.

Notes

When created, an Entity already has a Transform Component.


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 "", the Entity will be created without a name.

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.