Add Entity:hasWorld

This commit is contained in:
Tjakka5 2020-01-03 21:40:09 +01:00
parent ce32d16b8d
commit f6468fbe6b

View file

@ -137,6 +137,10 @@ function Entity:getComponents()
return self.__components return self.__components
end end
function Entity:hasWorld()
return self.__world and true or false
end
function Entity:getWorld() function Entity:getWorld()
return self.__world return self.__world
end end