def chosen_target
import bendvy-ecs-core@0.1.0.3/relation_graph.bend as RelationGraphimport Base
import entity_key.bend as K
24def chosen_target(found: Bool,target: K.Key,next: Unit -> Maybe<&2,K.Key>) -> Maybe<&2,K.Key>:
25 match found:
26 case True{}: Some{target}
27 case False{}: next(Unit{})