def admitted

bendvy-ecs-core@0.1.0.3 · execution_lifecycle_notices.bend:103

import bendvy-ecs-core@0.1.0.3/execution_lifecycle_notices.bend as ExecutionLifecycleNotices
import Base

103def admitted(same:Bool,active:Bool) -> Maybe<&2,Refusal>:
104  match same active:
105    case False{} _:Some{ForeignWorld{}}
106    case True{} False{}:Some{Inactive{}}
107    case True{} True{}:None{}

Uses (3)

Used by (1)