Entities

Entities are the basic unit of reference described by its components.

Using entities :

Creating an empty entity :

Engine engine;

Entity entity = engine.CreateEntity();

The result represents the unique identifier of the entity. It let you group components together.

Destroying an entity :

Entity entity = engine.CreateEntity();

engine.DestroyEntity(entity);

This will destroy the entity and all its components.

View also :