mini_arcade_core.scenes.bootstrap

Helpers for scene bootstrap/config loading.

Functions

scene_entities_config(→ dict[str, Any])

Return the entities section from scene runtime settings.

resolve_named_templates(→ dict[str, dict[str, Any]])

Clone and optionally resolve the named template mapping.

scene_viewport(→ tuple[float, float])

Resolve the current virtual viewport from the window service.

Module Contents

mini_arcade_core.scenes.bootstrap.scene_entities_config(scene, *, error_message: str) dict[str, Any][source]

Return the entities section from scene runtime settings.

mini_arcade_core.scenes.bootstrap.resolve_named_templates(raw_templates: dict[str, Any] | None, *, resolver: Callable[[dict[str, Any]], dict[str, Any]] | None = None) dict[str, dict[str, Any]][source]

Clone and optionally resolve the named template mapping.

mini_arcade_core.scenes.bootstrap.scene_viewport(scene) tuple[float, float][source]

Resolve the current virtual viewport from the window service.