mirror of
https://github.com/Ukendio/jecs.git
synced 2025-04-25 01:20:04 +00:00
tuple isnt optional
This commit is contained in:
parent
0256c765a0
commit
0f67cb1c86
1 changed files with 2 additions and 2 deletions
|
@ -763,7 +763,7 @@ local function preparedQuery(compatibleArchetypes: { Archetype },
|
||||||
return setmetatable(query, query) :: any
|
return setmetatable(query, query) :: any
|
||||||
end
|
end
|
||||||
|
|
||||||
function World.query(world: World, ...: number?): Query
|
function World.query(world: World, ...: number): Query
|
||||||
-- breaking?
|
-- breaking?
|
||||||
if (...) == nil then
|
if (...) == nil then
|
||||||
error("Missing components")
|
error("Missing components")
|
||||||
|
@ -773,7 +773,7 @@ function World.query(world: World, ...: number?): Query
|
||||||
local compatibleArchetypes: { Archetype } = {}
|
local compatibleArchetypes: { Archetype } = {}
|
||||||
local length = 0
|
local length = 0
|
||||||
|
|
||||||
local components: { number? } = { ... }
|
local components: { number } = { ... }
|
||||||
local archetypes: { Archetype } = world.archetypes :: any
|
local archetypes: { Archetype } = world.archetypes :: any
|
||||||
|
|
||||||
local firstArchetypeMap: ArchetypeMap
|
local firstArchetypeMap: ArchetypeMap
|
||||||
|
|
Loading…
Reference in a new issue