def attach

bendvy-ecs-core@0.1.0.4 · ordinary_condition_composition.bend:179

import bendvy-ecs-core@0.1.0.4/ordinary_condition_composition.bend as OrdinaryConditionComposition
import Base
import bendvy-ecs-core@0.1.0.4/world.bend as W
import bendvy-ecs-core@0.1.0.4/schedule.bend as Sch

179def attach(~S:Data,~C:Type,~R:Type,~E:Data,~H:Type,~B:Type,~select:B -> W.World<S,C,R,E> -> U32 -> Evaluation<W.World<S,C,R,E>,B>,schedule:Sch.Schedule<S,C,R,E,H>,bindings:Bindings<W.World<S,C,R,E>,B,select>) -> Attachment<S,C,R,E,H,B,select>:
180  match schedule bindings:
181    case Sch.Schedule{namespace,name,+steps,owners} Bindings{state,+facts}:attached(~S,~C,~R,~E,~H,~B,~select,Bool.and(unique_bindings(facts,[]),binding_targets(facts,steps)),namespace,name,steps,owners,Bindings{state,facts},facts)

Uses (11)

Used by (1)