mirror of
https://github.com/Ukendio/jecs.git
synced 2025-04-25 09:30:03 +00:00
Compare commits
1 commit
6864c344b8
...
984416f2a8
Author | SHA1 | Date | |
---|---|---|---|
|
984416f2a8 |
1 changed files with 21 additions and 0 deletions
21
jecs.luau
21
jecs.luau
|
@ -1226,6 +1226,27 @@ end
|
||||||
|
|
||||||
local function NOOP() 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 = {
|
type QueryInner = {
|
||||||
compatible_archetypes: { Archetype },
|
compatible_archetypes: { Archetype },
|
||||||
ids: { i53 },
|
ids: { i53 },
|
||||||
|
|
Loading…
Reference in a new issue