Entity.new
Creates a new Entity. Optionally queues it to be added to a World.
Creates a new Entity. Optionally queues it to be added to a World.
If Entity.SERIALIZE_BY_DEFAULT is true, the Entity is given a “serializable” Component.
entity = Entity.new( world )Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
world |
World | World to add the entity to |
Returns
Section titled “Returns”| Name | Type | Description |
|---|---|---|
entity |
Entity |