Removed deprecated functionality

Removed hasName/getName on Systems and Worlds.

Removed Entity.__components since it had a duplicate version of the components stored in the Entity itself.
This commit is contained in:
Pablo Ariel Mayobre 2023-02-14 18:14:23 -03:00
parent 695cc2dfe3
commit 50249d5ad3
3 changed files with 12 additions and 37 deletions

View file

@ -34,7 +34,6 @@ function World.new()
__systemLookup = {},
__name = nil,
__isWorld = true,
}, World.__mt)
@ -349,18 +348,6 @@ function World:deserialize(data, append)
self:__flush()
end
--- Returns true if the World has a name.
-- @treturn boolean
function World:hasName()
return self.__name and true or false
end
--- Returns the name of the World.
-- @treturn string
function World:getName()
return self.__name
end
--- Callback for when an Entity is added to the World.
-- @tparam Entity e The Entity that was added
function World:onEntityAdded(e) -- luacheck: ignore