mirror of
https://github.com/Ukendio/jecs.git
synced 2025-04-24 17:10:03 +00:00
Merge branch 'main' of https://github.com/Ukendio/jecs
Some checks failed
Some checks failed
This commit is contained in:
commit
263544d77c
1 changed files with 0 additions and 24 deletions
24
jecs.luau
24
jecs.luau
|
@ -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 },
|
||||
|
|
Loading…
Reference in a new issue