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.World.Bundle
Description
Synopsis
- newtype Bundle = Bundle {
- unBundle :: Components -> (Set ComponentID, Components, DynamicBundle)
- bundle :: forall a. Component a => a -> Bundle
- fromDynBundle :: DynamicBundle -> Bundle
- runBundle :: Bundle -> Components -> EntityID -> Archetype -> (Components, Archetype)
Documentation
Bundle of components.
Since: 0.9
Constructors
Bundle | |
Fields
|
fromDynBundle :: DynamicBundle -> Bundle Source #
runBundle :: Bundle -> Components -> EntityID -> Archetype -> (Components, Archetype) Source #
Insert a bundle of components into an archetype.
Since: 0.9