def apply_unrelate

bendvy-ecs-core@0.1.0.4 · relation_commands.bend:81

import bendvy-ecs-core@0.1.0.4/relation_commands.bend as RelationCommands
import Base
import relation_types.bend as G
import world.bend as W

81def apply_unrelate(~S: Data,~C: Type,~R: Type,~E: Data,world: W.World<S,Store<S,C>,R,Notice<S,E>>,descriptor: G.Descriptor<S>,source: W.Handle<S>) -> W.World<S,Store<S,C>,R,Notice<S,E>>:
82  match source:
83    case W.Handle{_,id}: discard_unit(~S,~C,~R,~E,W.with_store(~S,~Store<S,C>,~R,~Notice<S,E>,~Unit,store => store_unrelate(~S,~C,store,descriptor,id),world))

Uses (9)

Used by (3)