jecs/demo/src/ReplicatedStorage/std/ctx.luau

12 lines
251 B
Text
Raw Normal View History

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