mirror of
https://github.com/Keyslam-Group/Concord.git
synced 2025-09-02 12:24:11 -04:00
Add Entity:hasWorld
This commit is contained in:
parent
ce32d16b8d
commit
f6468fbe6b
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue