asobi_lua_sup (asobi v0.72.5)
View SourceSummary
Functions
Register the Lua bridge modules as the providers for the three Lua game-mode
kinds asobi_game_modes knows about.
Functions
-spec init([]) -> {ok, {supervisor:sup_flags(), [supervisor:child_spec()]}}.
-spec register_game_modes() -> ok.
Register the Lua bridge modules as the providers for the three Lua game-mode
kinds asobi_game_modes knows about.
Called from asobi_app:start/2 before the supervision tree comes up, and by
any test that resolves a {lua, _} mode without booting the application. The
mapping lives here, next to the bridges, so asobi_game_modes keeps knowing
nothing about the scripting runtime.
-spec start_link() -> supervisor:startlink_ret().