Copyright | (c) Matt Hunzinger 2025 |
---|---|
License | BSD-style (see the LICENSE file in the distribution) |
Maintainer | matt@hunzinger.me |
Stability | provisional |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Aztecs.ECS.View
Description
Synopsis
- newtype View = View {}
- view :: QueryFilter -> Archetypes -> View
- viewSingle :: QueryFilter -> Archetypes -> Maybe View
- null :: View -> Bool
- unview :: View -> Entities -> Entities
- allDyn :: Monad m => DynamicQueryT m a -> View -> m [a]
- singleDyn :: Monad m => DynamicQueryT m a -> View -> m (Maybe a)
- mapDyn :: Monad m => DynamicQueryT m a -> View -> m ([a], View)
- mapSingleDyn :: Monad m => DynamicQueryT m a -> View -> m (Maybe a, View)
Documentation
View into a World
, containing a subset of archetypes.
Since: 0.9
Constructors
View | |
Fields
|
view :: QueryFilter -> Archetypes -> View Source #
View into all archetypes containing the provided component IDs.
Since: 0.9
viewSingle :: QueryFilter -> Archetypes -> Maybe View Source #
View into a single archetype containing the provided component IDs.
Since: 0.9
allDyn :: Monad m => DynamicQueryT m a -> View -> m [a] Source #
Query all matching entities in a View
.
Since: 0.9
singleDyn :: Monad m => DynamicQueryT m a -> View -> m (Maybe a) Source #
Query all matching entities in a View
.
Since: 0.9
mapDyn :: Monad m => DynamicQueryT m a -> View -> m ([a], View) Source #
Map all matching entities in a View
.
Since: 0.9
mapSingleDyn :: Monad m => DynamicQueryT m a -> View -> m (Maybe a, View) Source #
Map a single matching entity in a View
.
Since: 0.9