mirror of
https://github.com/Ukendio/jecs.git
synced 2025-08-04 11:19:17 +00:00
Compare commits
3 commits
e34352477d
...
e770b82c9d
Author | SHA1 | Date | |
---|---|---|---|
|
e770b82c9d | ||
|
59df0bf2a3 | ||
|
3e995c9d7d |
4 changed files with 5 additions and 4 deletions
|
@ -1428,7 +1428,7 @@ local function query_iter_init(query: QueryInner): () -> (number, ...any)
|
|||
i -= 1
|
||||
|
||||
for i = 9, ids_len do
|
||||
output[i - 8] = columns_map[i][row]
|
||||
output[i - 8] = columns_map[ids[i]][row]
|
||||
end
|
||||
|
||||
return entity, a[row], b[row], c[row], d[row], e[row], f[row], g[row], h[row], unpack(output)
|
||||
|
@ -1903,7 +1903,7 @@ local function query_cached(query: QueryInner)
|
|||
i -= 1
|
||||
|
||||
for i = 9, ids_len do
|
||||
output[i - 8] = columns_map[i][row]
|
||||
output[i - 8] = columns_map[ids[i]][row]
|
||||
end
|
||||
|
||||
return entity, a[row], b[row], c[row], d[row], e[row], f[row], g[row], unpack(output)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@rbxts/jecs",
|
||||
"version": "0.9.0-rc.3",
|
||||
"version": "0.9.0-rc.4",
|
||||
"description": "Stupidly fast Entity Component System",
|
||||
"main": "jecs.luau",
|
||||
"repository": {
|
||||
|
|
|
@ -1536,6 +1536,7 @@ TEST("world:query()", function()
|
|||
|
||||
for i = 1, 9 do
|
||||
local id = world:component()
|
||||
world:component() -- make the components sparsely interleaved
|
||||
components[i] = id
|
||||
end
|
||||
local e1 = world:entity()
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "ukendio/jecs"
|
||||
version = "0.9.0-rc.3"
|
||||
version = "0.9.0-rc.4"
|
||||
registry = "https://github.com/UpliftGames/wally-index"
|
||||
realm = "shared"
|
||||
license = "MIT"
|
||||
|
|
Loading…
Reference in a new issue