tuple isnt optional

This commit is contained in:
Ukendio 2024-07-02 14:20:35 +02:00
parent 0256c765a0
commit 0f67cb1c86

View file

@ -763,7 +763,7 @@ local function preparedQuery(compatibleArchetypes: { Archetype },
return setmetatable(query, query) :: any
end
function World.query(world: World, ...: number?): Query
function World.query(world: World, ...: number): Query
-- breaking?
if (...) == nil then
error("Missing components")
@ -773,7 +773,7 @@ function World.query(world: World, ...: number?): Query
local compatibleArchetypes: { Archetype } = {}
local length = 0
local components: { number? } = { ... }
local components: { number } = { ... }
local archetypes: { Archetype } = world.archetypes :: any
local firstArchetypeMap: ArchetypeMap