mini_arcade_core.scenes.systems.base_system =========================================== .. py:module:: mini_arcade_core.scenes.systems.base_system .. autoapi-nested-parse:: Protocol for base systems in the mini arcade core. Defines the BaseSystem protocol that all systems should implement. Attributes ---------- .. autoapisummary:: mini_arcade_core.scenes.systems.base_system.TSystemContext Classes ------- .. autoapisummary:: mini_arcade_core.scenes.systems.base_system.BaseSystem Module Contents --------------- .. py:data:: TSystemContext .. py:class:: BaseSystem Bases: :py:obj:`Protocol`, :py:obj:`Generic`\ [\ :py:obj:`TSystemContext`\ ] Protocol for a system that operates within a given context. .. py:attribute:: name :type: str .. py:attribute:: phase :type: int :value: 0 .. py:attribute:: order :type: int :value: 0 .. py:method:: enabled(ctx: TSystemContext) -> bool Determine if the system is enabled in the given context. :param ctx: The system context. :type ctx: TSystemContext :return: True if the system is enabled, False otherwise. :rtype: bool .. py:method:: step(ctx: TSystemContext) Perform a single step of the system within the given context. :param ctx: The system context. :type ctx: TSystemContext