Removed the need for manual flushing. Systems now know about their instance

This commit is contained in:
Justin van der Leij 2018-03-23 23:40:35 +01:00
parent 358a455c8b
commit acd77fafa5
3 changed files with 23 additions and 19 deletions

View file

@ -129,6 +129,12 @@ function System:__tryRemove(e)
end
end
--- Returns the Instance the System is in.
-- @return The Instance
function System:getInstance()
return self.__instance
end
--- Returns if the System has the Entity.
-- @param The Entity to check for
-- @return True if the System has the Entity. False otherwise