The type of tags for a world, e.g. WTag MyWorld = MyWorldTag.
Standalone so that multiple HasTags w m instances share one equation.
Moduleapecs-0.10.1Haskell2010
Apecs.Tags
- 1 class
- 1 value
- Packageapecs-0.10.1
- Exports3
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceTags.hs
HasTags w m means that world w has a tag system generated by makeTaggedComponents.
Provides a way to query component tags for entities, dispatching on the world type w.
Methods
entityTags :: Entity -> SystemT w m [WTag w]
value
countCombinations Count entities grouped by their distinct component combination.
Takes the world's entity member set and uses entityTags from the HasTags class to query each entity's tags. Returns a map from tag sets to entity counts.