Explicitly invoke the garbage collector
Moduleapecs-0.9.6Haskell2010
Apecs.Util
- 1 type
- 5 values
- Packageapecs-0.9.6
- Exports6
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceUtil.hs
Utility
2 declarationsConvenience entity, for use in places where the entity value does not matter, i.e. a global store.
EntityCounter
4 declarationsComponent used by newEntity to track the number of issued entities.
Automatically added to any world created with makeWorld
Constructors
Instances6Eq, Show, Semigroup, Monoid, Component, Storage
Eq EntityCounterDefined in apecs-0.9.6 · Apecs.UtilShow EntityCounterDefined in apecs-0.9.6 · Apecs.UtilSemigroup EntityCounterDefined in apecs-0.9.6 · Apecs.UtilMonoid EntityCounterDefined in apecs-0.9.6 · Apecs.UtilComponent EntityCounterDefined in apecs-0.9.6 · Apecs.Utiltype Storage EntityCounter = ReadOnly (Global EntityCounter)Defined in apecs-0.9.6 · Apecs.Util
Bumps the EntityCounter and yields its value
Writes the given components to a new entity, and yields that entity. The return value is often ignored.
Writes the given components to a new entity without yelding the result. Used mostly for convenience.