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 2021-01-08 21:23:46 -03:00
parent 8f57cadce9
commit b6e4cd6fe9
No known key found for this signature in database
GPG key ID: 5ACD9E6858BEB0A9
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