mischief-ecs
Safe HaskellNone
LanguageGHC2024

Mischief.ECS.Systems

Description

Module with utility functions for creating and scheduling systems.

Documentation

data SystemConfig Source #

Constructors

SystemConfig 

Fields

newtype Systems Source #

Constructors

Systems [System ()] 

Instances

Instances details
Semigroup Systems Source # 
Instance details

Defined in Mischief.ECS.Systems

EraseIntoStorage (System ()) Systems Source # 
Instance details

Defined in Mischief.ECS.Systems

Methods

erase :: System () -> Systems Source #

schedule :: forall {k} (sc :: k). Schedule sc => SystemConfig -> System () Source #

remove :: forall {k} (sc :: k) a. (Schedule sc, ToSystems a) => a -> System () Source #

order :: forall {k} (sc :: k) a b. (Schedule sc, ToSystems a, ToSystems b) => (a, b) -> System () Source #

get :: forall {k} (sc :: k). Schedule sc => System () -> System Entity Source #

unschedule :: forall {k} (sc :: k) a. (Schedule sc, ToSystems a) => a -> System () Source #