mirror of
https://github.com/BlackMATov/evolved.lua.git
synced 2025-12-14 20:11:27 +07:00
first queries impl
This commit is contained in:
@@ -17,4 +17,12 @@ do
|
||||
local query = registry:query(
|
||||
fragments.position,
|
||||
fragments.velocity)
|
||||
|
||||
for chunk in query:chunks() do
|
||||
local ps = chunk.components[fragments.position]
|
||||
local vs = chunk.components[fragments.position]
|
||||
|
||||
for i = 1, #chunk.entities do
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user