def live_namespace

bendvy-ecs-core@0.1.0.3 · execution_relation_interpreter.bend:10

import bendvy-ecs-core@0.1.0.3/execution_relation_interpreter.bend as ExecutionRelationInterpreter
import Base
import bendvy-ecs-core@0.1.0.3/entity_allocator.bend as A
import bendvy-ecs-core@0.1.0.3/world.bend as W

10# Trusted barrier seam. Namespace and allocator must come from the same actual
11# Administration owner; this module does not grant gameplay graph authority.
12def live_namespace(~S:Data,same:Bool,allocator:A.Allocator,handle:W.Handle<S>) -> A.Allocator & Bool:
13  match same:
14    case False{}:(allocator,False{})
15    case True{}:A.checked(allocator,W.handle_key(~S,handle),1)

Uses (7)

Used by (1)