def attached

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

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

175def attached(~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>,allowed:Bool,namespace:U32,name:String,+steps:List<&2,Sch.Step>,owners:H,bindings:Bindings<W.World<S,C,R,E>,B,select>,facts:List<&2,BindingDescription>) -> Attachment<S,C,R,E,H,B,select>:
176  match allowed:
177    case False{}:AttachmentRejected{Sch.Schedule{namespace,name,steps,owners},bindings}
178    case True{}:Attached{Sch.Schedule{namespace,name,steps,(owners,bindings)}}

Uses (12)

Used by (1)