mirror of
https://github.com/Ukendio/jecs.git
synced 2025-04-25 09:30:03 +00:00
12 lines
251 B
Text
12 lines
251 B
Text
|
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
|