add( odf, playerNumber, position )

static function

Adds a new Entity to the world. The new entity can be of any type as defined by an ODF file that was loaded when the game started.


Name Type Descrpition
odf String ODF of entity to add
playerNumber Number Number of the player the entity will belong to
position Vector Where to add the entity


Type Description
Entity The new entity, or nil