mirror of
https://github.com/Ukendio/jecs.git
synced 2025-04-24 17:10:03 +00:00
Extend columns in queryOutput
This commit is contained in:
parent
1fa459ff71
commit
7e419d4fd1
1 changed files with 5 additions and 2 deletions
|
@ -368,9 +368,12 @@ function World.query(world: World, ...: i53): () -> (number, ...any)
|
|||
if queryLength == 1 then
|
||||
return entityId, columns[archetypeRecords[a]]
|
||||
elseif queryLength == 2 then
|
||||
return entityId, columns[archetypeRecords[a]]
|
||||
return entityId, columns[archetypeRecords[a]], columns[archetypeRecords[b]]
|
||||
elseif queryLength == 3 then
|
||||
return entityId, columns[archetypeRecords[a]]
|
||||
return entityId,
|
||||
columns[archetypeRecords[a]],
|
||||
columns[archetypeRecords[b]],
|
||||
columns[archetypeRecords[c]]
|
||||
elseif queryLength == 4 then
|
||||
return entityId,
|
||||
columns[archetypeRecords[a]],
|
||||
|
|
Loading…
Reference in a new issue