mirror of
https://github.com/Ukendio/jecs.git
synced 2025-04-24 17:10:03 +00:00
11 lines
245 B
Text
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
|