| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
Mischief.ECS.Archetypes.Graph
Documentation
data ArchetypeTransition Source #
Constructors
| Inserted ComponentId | |
| Removed ComponentId |
createNode :: Set ComponentId -> System Int Source #
getOrCreateNode :: Set ComponentId -> System Int Source #
getArchetypeOnInsert :: ArchetypeId -> [ComponentId] -> System ArchetypeData Source #
newtype ArchetypeRemovalResult Source #
Constructors
| ArchetypeRemovalResult | |
Fields
| |
getArchetypeOnRemove :: ArchetypeId -> [ComponentId] -> System (ArchetypeData, [ComponentId]) Source #
getRequirements :: ComponentId -> System (Set ComponentId) Source #
data ComponentQuery Source #
Constructors
| ComponentQuery | |
| RelationshipQueryAny | |
| RelationshipQuery |
findMatchingArchetypes :: forall m w. MonadSystem w m => [(ComponentId, ComponentQuery)] -> Archetypes -> m [([ComponentId], ArchetypeId)] Source #
allArchetypes :: forall m w. MonadSystem w m => m [([ComponentId], ArchetypeId)] Source #