def assigned

bendvy-ecs-core@0.1.0.4 · lifetime_scope_world_spawn.bend:10

import bendvy-ecs-core@0.1.0.4/lifetime_scope_world_spawn.bend as LifetimeScopeWorldSpawn
import Base
import bendvy-ecs-core@0.1.0.4/commands.bend as Cmd
import bendvy-ecs-core@0.1.0.4/lifetime_scope.bend as Sc
import bendvy-ecs-core@0.1.0.4/world.bend as W
import bendvy-ecs-core@0.1.0.4/relation_commands.bend as A

10# Ordinary population receives the same full World context as Cmd.tx_spawn.
11# Membership is assigned only after successful activation and population.
12def assigned(~S:Data,~C:Type,~R:Type,~E:Data,seen:W.World<S,A.Store<S,Sc.Store<S,C>>,R,A.Notice<S,E>> & Unit) -> W.World<S,A.Store<S,Sc.Store<S,C>>,R,A.Notice<S,E>>:
13  match seen:
14    case (world,_):world

Uses (7)

Used by (1)