execution_save_metadata.bend checks
raw source on the hub · import bendvy-ecs-core@0.1.0.3/execution_save_metadata.bend as Execution_save_metadata
7 imports
import Base import ./world.bend as W import ./entity_allocator.bend as A import ./entity_key.bend as Key import ./clock_state.bend as Clock import ./execution_lifecycle_notices.bend as Notice import ./deferred_command.bend as Deferred
Types
type Allocator source · line 9 · raw
Data
Allocator@next:U32 -> @high:U32 -> @capacity:U32 -> @depth:Nat -> @slots:List<&2, 0x704c77730661eff4309838fc738ef615/entity_allocator.Slot> -> @free:List<&2, U32> -> @order:List<&2, 0x704c77730661eff4309838fc738ef615/entity_key.Key> -> Allocator
type Lifecycle source · line 11 · raw
@-S:Data -> Data
Lifecycle@-S:Data -> @namespace:U32 -> @channels:List<&2, 0x704c77730661eff4309838fc738ef615/execution_lifecycle_notices.Channel<S>> -> @nextReader:U32 -> @active:List<&2, 0x704c77730661eff4309838fc738ef615/execution_lifecycle_notices.Active> -> Lifecycle<S>
type Metadata source · line 13 · raw
@-S:Data -> Data
Metadata@-S:Data -> @namespace:U32 -> @allocator:Allocator -> @clock:0x704c77730661eff4309838fc738ef615/clock_state.State -> @lifecycle:Lifecycle<S> -> Metadata<S>
Definitions
def right_slots source · line 16 · raw
@left:Array<0x704c77730661eff4309838fc738ef615/entity_allocator.Slot> -> @leftValues:List<&2, 0x704c77730661eff4309838fc738ef615/entity_allocator.Slot> -> @result:Pair(Array<0x704c77730661eff4309838fc738ef615/entity_allocator.Slot>, List<&2, 0x704c77730661eff4309838fc738ef615/entity_allocator.Slot>) -> Pair(Array<0x704c77730661eff4309838fc738ef615/entity_allocator.Slot>, List<&2, 0x704c77730661eff4309838fc738ef615/entity_allocator.Slot>)
def joined_slots source · line 19 · raw
@leftResult:Pair(Array<0x704c77730661eff4309838fc738ef615/entity_allocator.Slot>, List<&2, 0x704c77730661eff4309838fc738ef615/entity_allocator.Slot>) -> @rightResult:Pair(Array<0x704c77730661eff4309838fc738ef615/entity_allocator.Slot>, List<&2, 0x704c77730661eff4309838fc738ef615/entity_allocator.Slot>) -> Pair(Array<0x704c77730661eff4309838fc738ef615/entity_allocator.Slot>, List<&2, 0x704c77730661eff4309838fc738ef615/entity_allocator.Slot>)
def slots source · line 22 · raw
@values:Array<0x704c77730661eff4309838fc738ef615/entity_allocator.Slot> -> Pair(Array<0x704c77730661eff4309838fc738ef615/entity_allocator.Slot>, List<&2, 0x704c77730661eff4309838fc738ef615/entity_allocator.Slot>)
def allocator_slots source · line 26 · raw
@+next:U32 -> @+high:U32 -> @+capacity:U32 -> @+depth:Nat -> @+free:List<&2, U32> -> @+order:List<&2, 0x704c77730661eff4309838fc738ef615/entity_key.Key> -> @result:Pair(Array<0x704c77730661eff4309838fc738ef615/entity_allocator.Slot>, List<&2, 0x704c77730661eff4309838fc738ef615/entity_allocator.Slot>) -> Pair(0x704c77730661eff4309838fc738ef615/entity_allocator.Allocator, Allocator)
def allocator source · line 29 · raw
@actual:0x704c77730661eff4309838fc738ef615/entity_allocator.Allocator -> Pair(0x704c77730661eff4309838fc738ef615/entity_allocator.Allocator, Allocator)
Templates
template lifecycle source · line 32 · raw
@-S:Data -> @actual:0x704c77730661eff4309838fc738ef615/execution_lifecycle_notices.Journal<S> -> Pair(0x704c77730661eff4309838fc738ef615/execution_lifecycle_notices.Journal<S>, Lifecycle<S>)
template captured_lifecycle source · line 35 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @+namespace:U32 -> @actual:0x704c77730661eff4309838fc738ef615/entity_allocator.Allocator -> @metadata:Allocator -> @store:C -> @resource:R -> @events:List<&2, E> -> @pending:List<&1, 0x704c77730661eff4309838fc738ef615/deferred_command.Command<0x704c77730661eff4309838fc738ef615/world.World<S, C, R, E>>> -> @registrations:List<&2, 0x704c77730661eff4309838fc738ef615/world.RegistrationMeta> -> @nextSystemId:U32 -> @+clock:0x704c77730661eff4309838fc738ef615/clock_state.State -> @result:Pair(0x704c77730661eff4309838fc738ef615/execution_lifecycle_notices.Journal<S>, Lifecycle<S>) -> Pair(0x704c77730661eff4309838fc738ef615/world.World<S, C, R, E>, Metadata<S>)
template captured_allocator source · line 38 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @namespace:U32 -> @store:C -> @resource:R -> @events:List<&2, E> -> @pending:List<&1, 0x704c77730661eff4309838fc738ef615/deferred_command.Command<0x704c77730661eff4309838fc738ef615/world.World<S, C, R, E>>> -> @registrations:List<&2, 0x704c77730661eff4309838fc738ef615/world.RegistrationMeta> -> @nextSystemId:U32 -> @clock:0x704c77730661eff4309838fc738ef615/clock_state.State -> @journal:0x704c77730661eff4309838fc738ef615/execution_lifecycle_notices.Journal<S> -> @result:Pair(0x704c77730661eff4309838fc738ef615/entity_allocator.Allocator, Allocator) -> Pair(0x704c77730661eff4309838fc738ef615/world.World<S, C, R, E>, Metadata<S>)
template capture source · line 43 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @world:0x704c77730661eff4309838fc738ef615/world.World<S, C, R, E> -> Pair(0x704c77730661eff4309838fc738ef615/world.World<S, C, R, E>, Metadata<S>)
Detached metadata accompanies field export. It is not a restored namespace or a checkpoint of live reader/system owners; restore must remap those identities.