mirror of
https://github.com/Ukendio/jecs.git
synced 2025-04-25 01:20:04 +00:00
Remove index from tr
This commit is contained in:
parent
4a8250af4f
commit
af8e15ef45
1 changed files with 1 additions and 2 deletions
|
@ -36,7 +36,6 @@ type Record = {
|
||||||
type EntityIndex = { dense: { [i24]: i53 }, sparse: { [i53]: Record } }
|
type EntityIndex = { dense: { [i24]: i53 }, sparse: { [i53]: Record } }
|
||||||
|
|
||||||
type ArchetypeRecord = {
|
type ArchetypeRecord = {
|
||||||
index: number,
|
|
||||||
count: number,
|
count: number,
|
||||||
column: number
|
column: number
|
||||||
}
|
}
|
||||||
|
@ -290,7 +289,7 @@ local function archetype_create(world: any, types: { i24 }, prev: Archetype?): A
|
||||||
|
|
||||||
local records: { ArchetypeRecord } = {}
|
local records: { ArchetypeRecord } = {}
|
||||||
for i, componentId in types do
|
for i, componentId in types do
|
||||||
local tr = { column = i, count = 1, index = 1 }
|
local tr = { column = i, count = 1 }
|
||||||
local idr = id_record_ensure(componentIndex, componentId)
|
local idr = id_record_ensure(componentIndex, componentId)
|
||||||
idr.cache[id] = tr
|
idr.cache[id] = tr
|
||||||
idr.size += 1
|
idr.size += 1
|
||||||
|
|
Loading…
Reference in a new issue