asobi_world_sup (asobi v0.75.1)
View SourceTop-level world supervisor.
Public ETS trust assumption: asobi_world_state and
asobi_player_worlds are public named ETS tables. Anything running
in the same BEAM (game callbacks, plugins, extensions) can read and
mutate them. asobi is single-tenant and the loaded code is trusted, so
this is acceptable, but it is an explicit trust boundary. The Lua
runtime in src/lua/ runs in this same BEAM and its sandbox has to
stay out of these tables; so does any other sandboxed runtime.
Summary
Functions
-spec init([]) -> {ok, {supervisor:sup_flags(), [supervisor:child_spec()]}}.
-spec start_link() -> supervisor:startlink_ret().