aztecs-0.10.0: A modular game engine and Entity-Component-System (ECS) for Haskell.
Copyright(c) Matt Hunzinger 2025
LicenseBSD-style (see the LICENSE file in the distribution)
Maintainermatt@hunzinger.me
Stabilityprovisional
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Aztecs.ECS.Query.Dynamic.Reader

Description

 
Synopsis

Dynamic queries

newtype DynamicQueryReader a Source #

Dynamic query reader.

Since: 0.10

Constructors

DynamicQueryReader 

Fields

Instances

Instances details
DynamicQueryReaderF DynamicQueryReader Source #

Since: 0.10

Instance details

Defined in Aztecs.ECS.Query.Dynamic.Reader

Applicative DynamicQueryReader Source #

Since: 0.10

Instance details

Defined in Aztecs.ECS.Query.Dynamic.Reader

Functor DynamicQueryReader Source # 
Instance details

Defined in Aztecs.ECS.Query.Dynamic.Reader

MonadDynamicReaderSystem DynamicQueryReader System Source #

Since: 0.9

Instance details

Defined in Aztecs.ECS.System

Monad m => MonadDynamicReaderSystem DynamicQueryReader (AccessT m) Source #

Since: 0.9

Instance details

Defined in Aztecs.ECS.Access

class Functor f => DynamicQueryReaderF f where Source #

Dynamic query reader functor.

Since: 0.10

Minimal complete definition

entity, fetchDyn

Methods

entity :: f EntityID Source #

Fetch the currently matched EntityID.

Since: 0.10

fetchDyn :: Component a => ComponentID -> f a Source #

Fetch a Component by its ComponentID.

Since: 0.10

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

Try to fetch a Component by its ComponentID.

Since: 0.10

Running

allDyn :: Set ComponentID -> DynamicQueryReader a -> Entities -> [a] Source #

Match all entities.

Since: 0.10

filterDyn :: Set ComponentID -> (Node -> Bool) -> DynamicQueryReader a -> Entities -> [a] Source #

Match all entities with a filter.

Since: 0.10

singleDyn :: HasCallStack => Set ComponentID -> DynamicQueryReader a -> Entities -> a Source #

Match a single entity.

Since: 0.10

singleMaybeDyn :: Set ComponentID -> DynamicQueryReader a -> Entities -> Maybe a Source #

Match a single entity, or Nothing.

Since: 0.10

Dynamic query filters