mirror of
https://github.com/Keyslam-Group/Concord.git
synced 2025-09-02 12:24:11 -04:00
World:newEntity
A shortcut for Concord.entity(World)
This commit is contained in:
parent
cc0fd1614c
commit
a4ae392341
1 changed files with 6 additions and 0 deletions
|
@ -65,6 +65,12 @@ function World:addEntity(e)
|
|||
return self
|
||||
end
|
||||
|
||||
--- Creates a new Entity and adds it to the World.
|
||||
-- @treturn Entity e the new Entity
|
||||
function World:newEntity()
|
||||
return Entity(self)
|
||||
end
|
||||
|
||||
--- Removes an Entity from the World.
|
||||
-- @tparam Entity e Entity to remove
|
||||
-- @treturn World self
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue