def child_intent
bendvy-ecs-core@0.1.0.3 · relation_cleanup_control.bend:13
import bendvy-ecs-core@0.1.0.3/relation_cleanup_control.bend as RelationCleanupControl
import Base
import bendvy-ecs-core@0.1.0.3/relation_types.bend as T
import bendvy-ecs-core@0.1.0.3/entity_key.bend as Key
13def child_intent(-S:Data,kind:T.RelationKind,+key:Key.Key,+descriptor:T.Descriptor<S>,remaining:List<&2,T.Descriptor<S>>,child:Key.Key,children:List<&2,Key.Key>,frames:List<&2,T.CleanupFrame<S>>) -> Intent<S>:
14 match kind:
15 case T.Hierarchy{}:Continue{T.CleanupEnter{child} <> T.CleanupChildren{key,descriptor,remaining,children} <> frames}
16 case T.Ordinary{}:Unrelate{child,descriptor,T.CleanupChildren{key,descriptor,remaining,children} <> frames}