| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
Mischief.ECS.Relationships.Graph
Documentation
type family RelOutgoing (b :: Bool) :: Type -> Type where ... Source #
Equations
| RelOutgoing 'True = Maybe | |
| RelOutgoing 'False = [] |
class ListToOutgoing b where Source #
Methods
listToOutgoing :: [Entity] -> b Source #
Instances
| ListToOutgoing (Maybe Entity) Source # | |
Defined in Mischief.ECS.Relationships.Graph | |
| ListToOutgoing [Entity] Source # | |
Defined in Mischief.ECS.Relationships.Graph Methods listToOutgoing :: [Entity] -> [Entity] Source # | |
outgoing :: forall c m w. (Component c, MonadSystem w m, ListToOutgoing (RelOutgoing (IsExclusiveRel c) Entity)) => Entity -> m (RelOutgoing (IsExclusiveRel c) Entity) Source #
incoming :: forall c m w. (Component c, BundleTypes c, MonadSystem w m) => Entity -> m [Entity] Source #