Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Aztecs.ECS.World.Bundle
Synopsis
- newtype Bundle = Bundle {
- unBundle :: Components -> (Set ComponentID, Components, DynamicBundle)
- class Monoid a => MonoidBundle a where
- class MonoidDynamicBundle a where
- dynBundle :: Component c => ComponentID -> c -> a
- runBundle :: Bundle -> Components -> EntityID -> Archetype -> (Components, Archetype)
Documentation
Bundle of components.
Constructors
Bundle | |
Fields
|
Instances
class Monoid a => MonoidBundle a where Source #
Monoid bundle of components.
Instances
class MonoidDynamicBundle a where Source #
Monoid bundle of dynamic components.
Methods
dynBundle :: Component c => ComponentID -> c -> a Source #
Add a component to the bundle by its ComponentID
.
Instances
MonoidDynamicBundle Bundle Source # | |
Defined in Aztecs.ECS.World.Bundle | |
MonoidDynamicBundle DynamicBundle Source # | |
Defined in Aztecs.ECS.World.Bundle.Dynamic Methods dynBundle :: Component c => ComponentID -> c -> DynamicBundle Source # |
runBundle :: Bundle -> Components -> EntityID -> Archetype -> (Components, Archetype) Source #
Insert a bundle of components into an archetype.