def handle

bendvy-ecs-core@0.1.0.3 · execution_relation_access.bend:20

import bendvy-ecs-core@0.1.0.3/execution_relation_access.bend as ExecutionRelationAccess
import Base
import bendvy-ecs-core@0.1.0.3/world.bend as W
import bendvy-ecs-core@0.1.0.3/entity_key.bend as K

20def handle(~S:Data,namespace:U32,value:Maybe<&2,K.Key>) -> Maybe<&2,W.Handle<S>>:
21  match value:
22    case None{}:None{}
23    case Some{key}:Some{W.Handle{namespace,key}}

Uses (4)

Used by (1)