Skip to main content

register_show_scene

Function register_show_scene 

Source
pub fn register_show_scene(engine: &mut ScriptEngine)
Expand description

Register the game.showScene() JS API on the given engine.

Callable from JS as: await game.showScene("shop") Produces ScriptCommand::ShowScene { scene_name, layout_json: None }.