asobi_lua_sup (asobi v0.84.0)

View Source

Summary

Functions

Register the Lua bridge modules as the providers for the three Lua game-mode kinds asobi_game_modes knows about.

Functions

init/1

-spec init([]) -> {ok, {supervisor:sup_flags(), [supervisor:child_spec()]}}.

register_game_modes()

-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.

start_link()

-spec start_link() -> supervisor:startlink_ret().