Make e:flush 'private'

This commit is contained in:
Tjakka5 2019-12-22 21:01:47 +01:00
parent ecb3c2db7e
commit 89443bd961
2 changed files with 2 additions and 2 deletions

View file

@ -108,7 +108,7 @@ function Entity:assemble(assemblage, ...)
return self return self
end end
function Entity:flush() function Entity:__flush()
local addi, removei = 1, 1 local addi, removei = 1, 1
for i = 1, #self.__operations do for i = 1, #self.__operations do

View file

@ -76,7 +76,7 @@ function World:flush()
e = self.entities:get(i) e = self.entities:get(i)
if e.__isDirty then if e.__isDirty then
e:flush() e:__flush()
if (not e.__wasAdded) then -- The __wasAdded check below will handle this instead if (not e.__wasAdded) then -- The __wasAdded check below will handle this instead
for j = 1, self.systems.size do for j = 1, self.systems.size do