mirror of
https://github.com/Keyslam-Group/Concord.git
synced 2025-09-02 20:33:54 -04:00
Allowed for entities to be in multiple systems. Fixed the removal issue.
This commit is contained in:
parent
c750ea119f
commit
100d6320c7
5 changed files with 28 additions and 10 deletions
|
@ -10,13 +10,13 @@ function Pool.new(name, filter)
|
|||
|
||||
pool.name = name
|
||||
pool.filter = filter
|
||||
|
||||
|
||||
return pool
|
||||
end
|
||||
|
||||
function Pool:eligible(e)
|
||||
for _, component in ipairs(self.filter) do
|
||||
if not e.components[component] then
|
||||
if not e.components[component] or e.removed[component] then
|
||||
return false
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue