RestoreLifecycle.spawn: def of bendvy-ecs-core@0.1.0.4 Import: import bendvy-ecs-core@0.1.0.4/restore_lifecycle.bend as RestoreLifecycle Lines 38-39 of bendvy-ecs-core@0.1.0.4/restore_lifecycle.bend: https://jend.leeeet.dev/read.txt?path=bendvy-ecs-core@0.1.0.4/restore_lifecycle.bend&start_line=38&end_line=39 import Base import bendvy-ecs-core@0.1.0.4/world.bend as W import bendvy-ecs-core@0.1.0.4/transaction.bend as T import bendvy-ecs-core@0.1.0.4/commands.bend as Cmd def spawn(~S:Data,~C:Type,~Resources:Type,~E:Data,world:W.World) -> W.World & W.Reservation: spawn_staged(~S,~C,~Resources,~E,Cmd.tx_spawn(~S,~C,~Resources,~E,~Unit,~populate(~S,~C,~Resources,~E),T.begin(~W.World,~E,world),Unit{})) Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Unit https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/commands.bend&name=tx_spawn https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/restore_lifecycle.bend&name=populate https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/restore_lifecycle.bend&name=spawn_staged https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/transaction.bend&name=begin https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/world.bend&name=Reservation https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/world.bend&name=World