Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Aztecs.ECS.View
Synopsis
- newtype View = View {}
- view :: Set ComponentID -> Archetypes -> View
- viewSingle :: Set ComponentID -> Archetypes -> Maybe View
- filterView :: Set ComponentID -> (Node -> Bool) -> Archetypes -> View
- null :: View -> Bool
- unview :: View -> Entities -> Entities
- allDyn :: i -> DynamicQuery i a -> View -> ([a], View)
- singleDyn :: i -> DynamicQuery i a -> View -> (Maybe a, View)
- readAllDyn :: i -> DynamicQueryReader i a -> View -> [a]
Documentation
View into a World
, containing a subset of archetypes.
Constructors
View | |
Fields |
view :: Set ComponentID -> Archetypes -> View Source #
View into all archetypes containing the provided component IDs.
viewSingle :: Set ComponentID -> Archetypes -> Maybe View Source #
filterView :: Set ComponentID -> (Node -> Bool) -> Archetypes -> View Source #
View into all archetypes containing the provided component IDs and matching the provided predicate.
allDyn :: i -> DynamicQuery i a -> View -> ([a], View) Source #
Query all matching entities in a View
.
singleDyn :: i -> DynamicQuery i a -> View -> (Maybe a, View) Source #
Query all matching entities in a View
.
readAllDyn :: i -> DynamicQueryReader i a -> View -> [a] Source #
Query all matching entities in a View
.