mirror of
https://github.com/Ukendio/jecs.git
synced 2025-04-25 01:20:04 +00:00
Return self
This commit is contained in:
parent
f69e4e3b18
commit
f79e757eea
1 changed files with 3 additions and 1 deletions
|
@ -409,7 +409,7 @@ function World.query(world: World, ...: i53): any
|
|||
function preparedQuery:without(...)
|
||||
local components = { ... }
|
||||
for i, component in components do
|
||||
components[i] = #component
|
||||
components[i] = component
|
||||
end
|
||||
for i = #compatibleArchetypes, 1, - 1 do
|
||||
local archetype = compatibleArchetypes[i].archetype
|
||||
|
@ -424,9 +424,11 @@ function World.query(world: World, ...: i53): any
|
|||
table.remove(compatibleArchetypes, i)
|
||||
end
|
||||
end
|
||||
return self
|
||||
end
|
||||
|
||||
local lastRow
|
||||
|
||||
function preparedQuery:__iter()
|
||||
return function()
|
||||
local archetype = compatibleArchetype.archetype
|
||||
|
|
Loading…
Reference in a new issue