first queries impl

This commit is contained in:
BlackMATov
2024-11-14 02:57:56 +07:00
parent d2112b3a40
commit b421b1704f
4 changed files with 312 additions and 158 deletions

View File

@@ -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