World:newEntity

A shortcut for Concord.entity(World)
This commit is contained in:
Pablo Ariel Mayobre 2023-02-14 18:14:24 -03:00
parent cc0fd1614c
commit a4ae392341

View file

@ -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