File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 743
743
local compatible_archetypes : { Archetype }
744
744
local column_indices : { { number } }
745
745
local ids : { number }
746
+ local tr
747
+ local columns
746
748
747
749
local function world_query_next (): any
748
750
local entityId = entities [i ]
752
754
if not archetype then
753
755
return nil
754
756
end
757
+ tr = column_indices [lastArchetype ]
758
+ columns = archetype .columns
755
759
entities = archetype .entities
756
760
i = # entities
757
761
entityId = entities [i ]
760
764
local row = i
761
765
i -= 1
762
766
763
- local columns = archetype .columns
764
- local tr = column_indices [lastArchetype ]
765
-
766
767
if queryLength == 1 then
767
768
return entityId , columns [tr [1 ]][row ]
768
769
elseif queryLength == 2 then
1012
1013
1013
1014
entities = archetype .entities
1014
1015
i = # entities
1016
+ tr = column_indices [lastArchetype ]
1017
+ columns = archetype .columns
1015
1018
1016
1019
return it
1017
1020
end
You can’t perform that action at this time.
0 commit comments