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
11
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)