Sync to released Jecs 0.5.5-nightly.20250308T001059Z (#14)

Reviewed-on: #14
This commit is contained in:
marked 2025-03-08 01:11:16 +01:00
parent 8c3da268d9
commit 8e71312ea3
6 changed files with 9 additions and 33 deletions

View file

@ -172,9 +172,6 @@ end
local function entity_index_try_get_any(entity_index: EntityIndex, entity: number): Record?
local r = entity_index.sparse_array[ECS_ENTITY_T_LO(entity)]
if not r then
return nil
end
if not r or r.dense == 0 then
return nil
@ -1224,27 +1221,6 @@ end
local function NOOP() end
local function ARM(query, ...)
return query
end
local EMPTY_LIST = {}
local EMPTY_QUERY = {
__iter = function()
return NOOP
end,
iter = function()
return NOOP
end,
with = ARM,
without = ARM,
archetypes = function()
return EMPTY_LIST
end,
}
setmetatable(EMPTY_QUERY, EMPTY_QUERY)
type QueryInner = {
compatible_archetypes: { Archetype },
ids: { i53 },