add( odf, player, 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 Description
odf String The ODF name for the new entity
player Player The player the new entity will belong to
position Vector The world position of the new entity


Type Description
Entity (or derived type) The newly created Entity, or nil if creation failed