mini_arcade_core.scenes.systems.base_system¶
Protocol for base systems in the mini arcade core. Defines the BaseSystem protocol that all systems should implement.
Attributes¶
Classes¶
Protocol for a system that operates within a given context. |
Module Contents¶
- mini_arcade_core.scenes.systems.base_system.TSystemContext¶
- class mini_arcade_core.scenes.systems.base_system.BaseSystem[source]¶
Bases:
Protocol,Generic[TSystemContext]Protocol for a system that operates within a given context.
- name: str¶
- phase: int = 0¶
- order: int = 0¶
- enabled(ctx: TSystemContext) bool[source]¶
Determine if the system is enabled in the given context.
- Parameters:
ctx (TSystemContext) – The system context.
- Returns:
True if the system is enabled, False otherwise.
- Return type:
bool
- step(ctx: TSystemContext)[source]¶
Perform a single step of the system within the given context.
- Parameters:
ctx (TSystemContext) – The system context.