World:addEntity
Queues an Entity to be added to the World.
Queues an Entity to be added to the World.
The Entity’s world is set immediately. The Entity is not in getEntities() and is not evaluated by Systems until the next flush.
world = world:addEntity( e )Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
e |
Entity | Entity to add |
Returns
Section titled “Returns”| Name | Type | Description |
|---|---|---|
world |
World |