def required

bendvy-ecs-core@0.1.0.4 · ordinary_machine_declaration.bend:52

import bendvy-ecs-core@0.1.0.4/ordinary_machine_declaration.bend as OrdinaryMachineDeclaration
import Base
import bendvy-ecs-core@0.1.0.4/machine_world.bend as MW
import bendvy-ecs-core@0.1.0.4/machine.bend as M
import bendvy-ecs-core@0.1.0.4/world.bend as W

52# Inspect actual machine-slot availability while returning the world owner.
53# Missing yields the declared name in a one-element list; present yields [].
54# Does not create or initialize the slot, run handlers or apply queued state.
55def required(~S:Data,~Token:Data,~V:Data,~C:Type,~R:Type,~E:Data,~take:R -> R & M.Slot<S,Token,V>,~declaration:Declaration<S,Token,V,R,take>,world:W.World<S,C,R,E>) -> W.World<S,C,R,E> & List<&2,String>:
56  availability(~S,~Token,~V,~C,~R,~E,name(~S,~Token,~V,~R,~take,declaration),MW.take(~S,~Token,~V,~C,~R,~E,~take,world))

Uses (9)

Used by (1)