def clear_store

bendvy-ecs-core@0.1.0.4 · relation_cleanup.bend:18

import bendvy-ecs-core@0.1.0.4/relation_cleanup.bend as RelationCleanup
import Base
import relation_commands.bend as A
import world.bend as W

18def clear_store(~S: Data,~C: Type,~E: Data,~clear: C -> W.Handle<S> -> C & List<&2,A.Notice<S,E>>,store: A.Store<S,C>,handle: W.Handle<S>) -> A.Store<S,C> & List<&2,A.Notice<S,E>>:
19  match store:
20    case A.Store{components,graph}: clear_join(~S,~C,~E,clear(components,handle),graph)

Uses (6)

Used by (1)