| 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)] -> m (Set ArchetypeId) Source #
allArchetypes :: forall m w. MonadSystem w m => m (Set ArchetypeId) Source #
archetypesWith :: forall m w. MonadSystem w m => (ComponentId, ComponentQuery) -> m (Set ArchetypeId) Source #
archetypesWithout :: forall m w. MonadSystem w m => (ComponentId, ComponentQuery) -> m (Set ArchetypeId) Source #