mini_arcade_core.scenes.systems.system_pipeline =============================================== .. py:module:: mini_arcade_core.scenes.systems.system_pipeline .. autoapi-nested-parse:: Pipeline for managing and executing systems in order. Defines the SystemPipeline dataclass that holds and runs systems. Classes ------- .. autoapisummary:: mini_arcade_core.scenes.systems.system_pipeline.SystemPipeline Module Contents --------------- .. py:class:: SystemPipeline Bases: :py:obj:`Generic`\ [\ :py:obj:`mini_arcade_core.scenes.systems.base_system.TSystemContext`\ ] Pipeline for managing and executing systems in order. :ivar systems (List[BaseSystem[TSystemContext]]): List of systems in the pipeline. .. py:attribute:: systems :type: List[mini_arcade_core.scenes.systems.base_system.BaseSystem[mini_arcade_core.scenes.systems.base_system.TSystemContext]] :value: [] .. py:method:: insertion_sort(arr) :staticmethod: Sorts a list of elements using the Insertion Sort algorithm. .. py:method:: add(system: mini_arcade_core.scenes.systems.base_system.BaseSystem[mini_arcade_core.scenes.systems.base_system.TSystemContext]) Add a system to the pipeline and sort by order. :param system: The system to add. :type system: BaseSystem[TSystemContext] .. py:method:: extend(systems: Iterable[mini_arcade_core.scenes.systems.base_system.BaseSystem[mini_arcade_core.scenes.systems.base_system.TSystemContext]]) Extend the pipeline with multiple systems. :param systems: An iterable of systems to add. :type systems: Iterable[BaseSystem[TSystemContext]] .. py:method:: step(ctx: mini_arcade_core.scenes.systems.base_system.TSystemContext) Execute a step for each system in the pipeline. :param ctx: The system context. :type ctx: TSystemContext