jecs/demo/src/ReplicatedStorage/std/ctx.luau
2024-10-12 22:18:11 +02:00

11 lines
245 B
Text

local handle = require(script.Parent.handle)
local world = require(script.Parent.world)
local singleton = world:entity()
local function ctx()
-- Cannot cache handles because they will get invalidated
return handle(singleton)
end
return ctx