Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Aztecs.ECS.System.Class
Documentation
class Arrow arr => ArrowSystem q arr | arr -> q where Source #
Minimal complete definition
Methods
map :: q i a -> arr i [a] Source #
Query and update all matching entities.
map_ :: q i o -> arr i () Source #
Query and update all matching entities, ignoring the results.
filterMap :: q i a -> QueryFilter -> arr i [a] Source #
Map all matching entities with a QueryFilter
, storing the updated entities.
mapSingle :: q i a -> arr i a Source #
Map a single matching entity, storing the updated components. If there are zero or multiple matching entities, an error will be thrown.
mapSingleMaybe :: q i a -> arr i (Maybe a) Source #