~/bend-docscommunity

lifetime_scope_world_spawn.bend checks

raw source on the hub · import bendvy-ecs-core@0.1.0.2/lifetime_scope_world_spawn.bend as Lifetime_scope_world_spawn

8 imports
import Base
import ./deferred_command.bend as Deferred
import ./trace_facts.bend as TraceFacts
import ./commands.bend as Cmd
import ./lifetime_scope.bend as Sc
import ./world.bend as W
import ./transaction.bend as T
import ./relation_commands.bend as A

Templates

template assigned source · line 12 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @seen:Pair(0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, 0xb2b0f04555daca474f0f77d0966945c9/lifetime_scope.Store<S, C>>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>, Unit) -> 0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, 0xb2b0f04555daca474f0f77d0966945c9/lifetime_scope.Store<S, C>>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>

Ordinary population receives the same full World context as Cmd.tx_spawn. Membership is assigned only after successful activation and population.

template assign source · line 15 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @world:0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, 0xb2b0f04555daca474f0f77d0966945c9/lifetime_scope.Store<S, C>>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>> -> @handle:0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S> -> @name:String -> 0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, 0xb2b0f04555daca474f0f77d0966945c9/lifetime_scope.Store<S, C>>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>

template activated source · line 18 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-populate:(@_:0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, 0xb2b0f04555daca474f0f77d0966945c9/lifetime_scope.Store<S, C>>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>> -> @_:0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S> -> @_:P -> 0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, 0xb2b0f04555daca474f0f77d0966945c9/lifetime_scope.Store<S, C>>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>) -> @seen:Pair(0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, 0xb2b0f04555daca474f0f77d0966945c9/lifetime_scope.Store<S, C>>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>, 0xb2b0f04555daca474f0f77d0966945c9/world.Status) -> @+handle:0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S> -> @payload:P -> @name:String -> 0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, 0xb2b0f04555daca474f0f77d0966945c9/lifetime_scope.Store<S, C>>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>

template apply source · line 22 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-populate:(@_:0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, 0xb2b0f04555daca474f0f77d0966945c9/lifetime_scope.Store<S, C>>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>> -> @_:0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S> -> @_:P -> 0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, 0xb2b0f04555daca474f0f77d0966945c9/lifetime_scope.Store<S, C>>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>) -> @world:0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, 0xb2b0f04555daca474f0f77d0966945c9/lifetime_scope.Store<S, C>>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>> -> @+handle:0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S> -> @payload:P -> @name:String -> 0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, 0xb2b0f04555daca474f0f77d0966945c9/lifetime_scope.Store<S, C>>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>

template reserved source · line 24 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-populate:(@_:0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, 0xb2b0f04555daca474f0f77d0966945c9/lifetime_scope.Store<S, C>>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>> -> @_:0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S> -> @_:P -> 0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, 0xb2b0f04555daca474f0f77d0966945c9/lifetime_scope.Store<S, C>>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>) -> @seen:Pair(0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, 0xb2b0f04555daca474f0f77d0966945c9/lifetime_scope.Store<S, C>>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>, 0xb2b0f04555daca474f0f77d0966945c9/world.Reservation<S>) -> @undo:List<&1, @_:0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, 0xb2b0f04555daca474f0f77d0966945c9/lifetime_scope.Store<S, C>>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>> -> 0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, 0xb2b0f04555daca474f0f77d0966945c9/lifetime_scope.Store<S, C>>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>> -> @commands:List<&1, 0xb2b0f04555daca474f0f77d0966945c9/deferred_command.Command<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, 0xb2b0f04555daca474f0f77d0966945c9/lifetime_scope.Store<S, C>>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>>> -> @events:List<&2, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>> -> @trace:0xb2b0f04555daca474f0f77d0966945c9/trace_facts.State -> @payload:P -> @name:String -> Pair(0xb2b0f04555daca474f0f77d0966945c9/transaction.Tx<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, 0xb2b0f04555daca474f0f77d0966945c9/lifetime_scope.Store<S, C>>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>, 0xb2b0f04555daca474f0f77d0966945c9/lifetime_scope.SpawnResult<S, P>)

template checked source · line 28 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-populate:(@_:0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, 0xb2b0f04555daca474f0f77d0966945c9/lifetime_scope.Store<S, C>>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>> -> @_:0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S> -> @_:P -> 0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, 0xb2b0f04555daca474f0f77d0966945c9/lifetime_scope.Store<S, C>>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>) -> @same:Bool -> @world:0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, 0xb2b0f04555daca474f0f77d0966945c9/lifetime_scope.Store<S, C>>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>> -> @undo:List<&1, @_:0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, 0xb2b0f04555daca474f0f77d0966945c9/lifetime_scope.Store<S, C>>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>> -> 0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, 0xb2b0f04555daca474f0f77d0966945c9/lifetime_scope.Store<S, C>>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>> -> @commands:List<&1, 0xb2b0f04555daca474f0f77d0966945c9/deferred_command.Command<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, 0xb2b0f04555daca474f0f77d0966945c9/lifetime_scope.Store<S, C>>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>>> -> @events:List<&2, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>> -> @trace:0xb2b0f04555daca474f0f77d0966945c9/trace_facts.State -> @payload:P -> @name:String -> Pair(0xb2b0f04555daca474f0f77d0966945c9/transaction.Tx<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, 0xb2b0f04555daca474f0f77d0966945c9/lifetime_scope.Store<S, C>>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>, 0xb2b0f04555daca474f0f77d0966945c9/lifetime_scope.SpawnResult<S, P>)

template namespaced source · line 32 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-populate:(@_:0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, 0xb2b0f04555daca474f0f77d0966945c9/lifetime_scope.Store<S, C>>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>> -> @_:0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S> -> @_:P -> 0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, 0xb2b0f04555daca474f0f77d0966945c9/lifetime_scope.Store<S, C>>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>) -> @seen:Pair(0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, 0xb2b0f04555daca474f0f77d0966945c9/lifetime_scope.Store<S, C>>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>, U32) -> @scope:0xb2b0f04555daca474f0f77d0966945c9/lifetime_scope.Scope<S> -> @undo:List<&1, @_:0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, 0xb2b0f04555daca474f0f77d0966945c9/lifetime_scope.Store<S, C>>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>> -> 0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, 0xb2b0f04555daca474f0f77d0966945c9/lifetime_scope.Store<S, C>>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>> -> @commands:List<&1, 0xb2b0f04555daca474f0f77d0966945c9/deferred_command.Command<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, 0xb2b0f04555daca474f0f77d0966945c9/lifetime_scope.Store<S, C>>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>>> -> @events:List<&2, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>> -> @trace:0xb2b0f04555daca474f0f77d0966945c9/trace_facts.State -> @payload:P -> Pair(0xb2b0f04555daca474f0f77d0966945c9/transaction.Tx<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, 0xb2b0f04555daca474f0f77d0966945c9/lifetime_scope.Store<S, C>>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>, 0xb2b0f04555daca474f0f77d0966945c9/lifetime_scope.SpawnResult<S, P>)

template tx_spawn_in source · line 35 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-populate:(@_:0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, 0xb2b0f04555daca474f0f77d0966945c9/lifetime_scope.Store<S, C>>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>> -> @_:0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S> -> @_:P -> 0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, 0xb2b0f04555daca474f0f77d0966945c9/lifetime_scope.Store<S, C>>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>) -> @tx:0xb2b0f04555daca474f0f77d0966945c9/transaction.Tx<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, 0xb2b0f04555daca474f0f77d0966945c9/lifetime_scope.Store<S, C>>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>> -> @scope:0xb2b0f04555daca474f0f77d0966945c9/lifetime_scope.Scope<S> -> @payload:P -> Pair(0xb2b0f04555daca474f0f77d0966945c9/transaction.Tx<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, 0xb2b0f04555daca474f0f77d0966945c9/lifetime_scope.Store<S, C>>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>, 0xb2b0f04555daca474f0f77d0966945c9/lifetime_scope.SpawnResult<S, P>)