aztecs-0.8.0: A modular game engine and Entity-Component-System (ECS) for Haskell.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Aztecs.ECS.Query.Dynamic.Reader.Class

Documentation

class Arrow arr => ArrowDynamicQueryReader arr where Source #

Minimal complete definition

entity, fetchDyn

Methods

entity :: arr () EntityID Source #

Fetch the currently matched EntityID.

fetchDyn :: Component a => ComponentID -> arr () a Source #

Fetch a Component by its ComponentID.

fetchMaybeDyn :: Component a => ComponentID -> arr () (Maybe a) Source #

Try to fetch a Component by its ComponentID.