mini_arcade_core.scenes.systems.builtins.intent_commands

Reusable intent-driven command dispatch system.

Attributes

Classes

IntentCommandSystem

Push commands when configured intent attributes are truthy for this tick.

Module Contents

mini_arcade_core.scenes.systems.builtins.intent_commands.TContext
class mini_arcade_core.scenes.systems.builtins.intent_commands.IntentCommandSystem[source]

Bases: mini_arcade_core.scenes.systems.base_system.BaseSystem[TContext], Generic[TContext]

Push commands when configured intent attributes are truthy for this tick.

bindings: Mapping[str, Callable[[TContext], object]]
name: str = 'intent_commands'
phase: int
order: int = 13
intent_attr: str = 'intent'
step(ctx: TContext) None[source]

Perform a single step of the system within the given context.

Parameters:

ctx (TSystemContext) – The system context.