~/bend-docscommunity

reader_domains.bend checks

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

3 imports
import Base
import world.bend as W
import event_runtime.bend as Ev

Types

type Events source · line 7 · raw

@S:Data -> @E:Data -> Type

Affine transport owner for two independently retained Data streams. Gameplay does not receive this owner. The closed classifier belongs to schema setup.

type Detached source · line 9 · raw

@S:Data -> @C:Type -> @R:Type -> @E:Data -> Type

Templates

template choose source · line 11 · raw

@-E:Data -> @selected:Bool -> @+value:E -> @+events:List<&2, E> -> @+removals:List<&2, E> -> Pair(List<&2, E>, List<&2, E>)

template split_reverse source · line 15 · raw

@-E:Data -> @pair:Pair(List<&2, E>, List<&2, E>) -> Pair(List<&2, E>, List<&2, E>)

template split_loop source · line 18 · raw

@-E:Data -> @-is_event:(@_:E -> Bool) -> @values:List<&2, E> -> @acc:Pair(List<&2, E>, List<&2, E>) -> Pair(List<&2, E>, List<&2, E>)

template split source · line 24 · raw

@-E:Data -> @-is_event:(@_:E -> Bool) -> @values:List<&2, E> -> Pair(List<&2, E>, List<&2, E>)

template detached_values source · line 26 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @+namespace:U32 -> @+batches:List<&2, 0xb2b0f04555daca474f0f77d0966945c9/event_runtime.Batch<E>> -> @+positions:List<&2, 0xb2b0f04555daca474f0f77d0966945c9/event_runtime.Position> -> @+nextReader:U32 -> @+tick:Nat -> @+frameStart:Nat -> @+boundary:Nat -> @+capacity:Nat -> @+dropped:Nat -> @+removals:List<&2, E> -> @observed:Pair(0xb2b0f04555daca474f0f77d0966945c9/world.World<S, C, R, E>, List<&2, E>) -> Detached<S, C, R, E>

template detach source · line 29 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @runtime:0xb2b0f04555daca474f0f77d0966945c9/event_runtime.Runtime<S, C, R, E> -> @+removals:List<&2, E> -> Detached<S, C, R, E>

template attach source · line 32 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @events:Events<S, E> -> @world:0xb2b0f04555daca474f0f77d0966945c9/world.World<S, C, R, E> -> 0xb2b0f04555daca474f0f77d0966945c9/event_runtime.Runtime<S, C, R, E>

template collected source · line 38 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @world:0xb2b0f04555daca474f0f77d0966945c9/world.World<S, C, R, E> -> @events:Events<S, E> -> @partition:Pair(List<&2, E>, List<&2, E>) -> Detached<S, C, R, E>

Absorb newly committed ordinary events from a removal-domain World through the real Event runtime publication synchronization. Deferred barriers use this same operation; rollback leaves no publication delta to transport.

template collect_view source · line 43 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-is_event:(@_:E -> Bool) -> @events:Events<S, E> -> @observed:Pair(0xb2b0f04555daca474f0f77d0966945c9/world.World<S, C, R, E>, List<&2, E>) -> Detached<S, C, R, E>

template collect source · line 46 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-is_event:(@_:E -> Bool) -> @events:Events<S, E> -> @world:0xb2b0f04555daca474f0f77d0966945c9/world.World<S, C, R, E> -> Detached<S, C, R, E>

template driven source · line 51 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-H:Type -> @-Out:Type -> @-body:(@_:Events<S, E> -> @_:H -> @_:0xb2b0f04555daca474f0f77d0966945c9/world.World<S, C, R, E> -> Out) -> @owners:H -> @result:Detached<S, C, R, E> -> Out

Reusable pre-dispatch seam. The setup callback receives the actual separated event metadata and complete World owners; no affine owner is copied.

template drive source · line 54 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-H:Type -> @-Out:Type -> @-is_event:(@_:E -> Bool) -> @-body:(@_:Events<S, E> -> @_:H -> @_:0xb2b0f04555daca474f0f77d0966945c9/world.World<S, C, R, E> -> Out) -> @events:Events<S, E> -> @owners:H -> @world:0xb2b0f04555daca474f0f77d0966945c9/world.World<S, C, R, E> -> Out

template event_batch source · line 60 · raw

@-E:Data -> @-is_event:(@_:E -> Bool) -> @+tick:Nat -> @filtered:Pair(List<&2, E>, List<&2, E>) -> @rest:List<&2, 0xb2b0f04555daca474f0f77d0966945c9/event_runtime.Batch<E>> -> List<&2, 0xb2b0f04555daca474f0f77d0966945c9/event_runtime.Batch<E>>

Event cursors are publication ticks, not list offsets. Removing notice-only batches therefore retains every real cursor/tick and the original dropped boundary. Ev.run does not trim; retention is applied only by Ev.frame.

template event_batches_loop source · line 64 · raw

@-E:Data -> @-is_event:(@_:E -> Bool) -> @batches:List<&2, 0xb2b0f04555daca474f0f77d0966945c9/event_runtime.Batch<E>> -> @acc:List<&2, 0xb2b0f04555daca474f0f77d0966945c9/event_runtime.Batch<E>> -> List<&2, 0xb2b0f04555daca474f0f77d0966945c9/event_runtime.Batch<E>>

template event_batches source · line 68 · raw

@-E:Data -> @-is_event:(@_:E -> Bool) -> @batches:List<&2, 0xb2b0f04555daca474f0f77d0966945c9/event_runtime.Batch<E>> -> List<&2, 0xb2b0f04555daca474f0f77d0966945c9/event_runtime.Batch<E>>

template recovered source · line 70 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-is_event:(@_:E -> Bool) -> @world:0xb2b0f04555daca474f0f77d0966945c9/world.World<S, C, R, E> -> @+namespace:U32 -> @+batches:List<&2, 0xb2b0f04555daca474f0f77d0966945c9/event_runtime.Batch<E>> -> @+positions:List<&2, 0xb2b0f04555daca474f0f77d0966945c9/event_runtime.Position> -> @+nextReader:U32 -> @+tick:Nat -> @+frameStart:Nat -> @+boundary:Nat -> @+capacity:Nat -> @+dropped:Nat -> @+old_removals:List<&2, E> -> @partition:Pair(List<&2, E>, List<&2, E>) -> Detached<S, C, R, E>

template recovery_view source · line 73 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-is_event:(@_:E -> Bool) -> @+namespace:U32 -> @+batches:List<&2, 0xb2b0f04555daca474f0f77d0966945c9/event_runtime.Batch<E>> -> @+positions:List<&2, 0xb2b0f04555daca474f0f77d0966945c9/event_runtime.Position> -> @+nextReader:U32 -> @+tick:Nat -> @+frameStart:Nat -> @+boundary:Nat -> @+capacity:Nat -> @+dropped:Nat -> @+old_removals:List<&2, E> -> @observed:Pair(0xb2b0f04555daca474f0f77d0966945c9/world.World<S, C, R, E>, List<&2, E>) -> Detached<S, C, R, E>

template recover source · line 76 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-is_event:(@_:E -> Bool) -> @runtime:0xb2b0f04555daca474f0f77d0966945c9/event_runtime.Runtime<S, C, R, E> -> @+old_removals:List<&2, E> -> Detached<S, C, R, E>