mini_arcade_core.scenes.autoreg¶
Autoregistration utilities for mini arcade core. Allows automatic registration of Scene classes via decorators.
Functions¶
|
Decorator to mark and register a Scene class under an id. |
|
Copy of current catalog (useful for tests). |
|
Clear the current catalog (useful for tests). |
Module Contents¶
- mini_arcade_core.scenes.autoreg.register_scene(scene_id: str)[source]¶
Decorator to mark and register a Scene class under an id.
- Parameters:
scene_id (str) – The unique identifier for the Scene class.
- Raises:
ValueError – If the scene_id is already registered.