mirror of
https://github.com/Keyslam-Group/Concord.git
synced 2025-09-02 20:33:54 -04:00
Polishing
This commit is contained in:
parent
58549d6b0a
commit
2d21fe97a5
8 changed files with 136 additions and 109 deletions
|
@ -14,11 +14,11 @@ function System.new(...)
|
|||
|
||||
for _, filter in pairs({...}) do
|
||||
local pool = system:buildPool(filter)
|
||||
if not system[pool.__name] then
|
||||
system[pool.__name] = pool
|
||||
if not system[pool.name] then
|
||||
system[pool.name] = pool
|
||||
system.__pools[#system.__pools + 1] = pool
|
||||
else
|
||||
error("Pool with name '"..pool.__name.."' already exists.")
|
||||
error("Pool with name '"..pool.name.."' already exists.")
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -40,7 +40,7 @@ function System:buildPool(pool)
|
|||
return Pool(name, filter)
|
||||
end
|
||||
|
||||
function System:entityUpdated(e)
|
||||
function System:checkEntity(e)
|
||||
local systemHas = self:has(e)
|
||||
|
||||
for _, pool in ipairs(self.__pools) do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue