def guard_condition

bendvy-ecs-core@0.1.0.3 · dependency_application.bend:42

import bendvy-ecs-core@0.1.0.3/dependency_application.bend as DependencyApplication
import Base
import bendvy-ecs-core@0.1.0.3/dependency_executor.bend as Exec

42def guard_condition(~Error:Data,allowed:Bool) -> Exec.Condition<Error>:
43  match allowed:
44    case True{}:Exec.Allowed{}
45    case False{}:Exec.Disabled{}

Uses (2)

Used by (1)