relation_providers.bend checks
raw source on the hub · import bendvy-ecs-core@0.1.0.2/relation_providers.bend as Relation_providers
9 imports
import Base import ./deferred_command.bend as Deferred import ./trace_facts.bend as TraceFacts import entity_key.bend as Key import relation_types.bend as G import relation_commands.bend as A import world.bend as W import transaction.bend as X import capabilities.bend as Cap
Types
type Targets source · line 13 · raw
@S:Data -> Data
Descriptor is closed by schema provisioning; gameplay has no descriptor argument. Inverse capability exposes only a snapshot query, never a setter for the table.
Targets@S:Data -> @source:0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S> -> @target:0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S> -> Targets<S>
type ReadOnly source · line 15 · raw
@-H:Type -> @S:Data -> Type
ReadOnly@-H:Type -> @S:Data -> @inverse:0xb2b0f04555daca474f0f77d0966945c9/capabilities.Request<H, 0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S>, Maybe<&2, List<&2, 0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S>>>> -> ReadOnly<H, S>
type Writable source · line 17 · raw
@-H:Type -> @S:Data -> Type
Writable@-H:Type -> @S:Data -> @inverse:0xb2b0f04555daca474f0f77d0966945c9/capabilities.Request<H, 0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S>, Maybe<&2, List<&2, 0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S>>>> -> @relate:0xb2b0f04555daca474f0f77d0966945c9/capabilities.Request<H, Targets<S>, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.QueueStatus> -> @unrelate:0xb2b0f04555daca474f0f77d0966945c9/capabilities.Request<H, 0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S>, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.QueueStatus> -> Writable<H, S>
Definitions
def relate_live source · line 67 · raw
@-H:Type -> @-S:Data -> @caps:Writable<H, S> -> @owner:H -> @args:Targets<S> -> Pair(H, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.QueueStatus)
Rank-two abstract owners with live affine capability bundles. Erased bundles cannot be scrutinized in live code; the prior rejected sketches are retained.
def read_live source · line 70 · raw
@-H:Type -> @-S:Data -> @caps:ReadOnly<H, S> -> @owner:H -> @target:0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S> -> Pair(H, Maybe<&2, List<&2, 0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S>>>)
Templates
template read_field source · line 19 · raw
@-H:Type -> @-S:Data -> @caps:ReadOnly<H, S> -> 0xb2b0f04555daca474f0f77d0966945c9/capabilities.Request<H, 0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S>, Maybe<&2, List<&2, 0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S>>>>
template write_inverse_field source · line 22 · raw
@-H:Type -> @-S:Data -> @caps:Writable<H, S> -> 0xb2b0f04555daca474f0f77d0966945c9/capabilities.Request<H, 0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S>, Maybe<&2, List<&2, 0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S>>>>
template relate_field source · line 25 · raw
@-H:Type -> @-S:Data -> @caps:Writable<H, S> -> 0xb2b0f04555daca474f0f77d0966945c9/capabilities.Request<H, Targets<S>, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.QueueStatus>
template clear_field source · line 28 · raw
@-H:Type -> @-S:Data -> @caps:Writable<H, S> -> 0xb2b0f04555daca474f0f77d0966945c9/capabilities.Request<H, 0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S>, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.QueueStatus>
template read source · line 31 · raw
@-H:Type -> @-S:Data -> @-caps:ReadOnly<H, S> -> @owner:H -> @target:0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S> -> Pair(H, Maybe<&2, List<&2, 0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S>>>)
template inverse source · line 33 · raw
@-H:Type -> @-S:Data -> @-caps:Writable<H, S> -> @owner:H -> @target:0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S> -> Pair(H, Maybe<&2, List<&2, 0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S>>>)
template relate source · line 35 · raw
@-H:Type -> @-S:Data -> @-caps:Writable<H, S> -> @owner:H -> @targets:Targets<S> -> Pair(H, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.QueueStatus)
template unrelate source · line 37 · raw
@-H:Type -> @-S:Data -> @-caps:Writable<H, S> -> @owner:H -> @source:0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S> -> Pair(H, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.QueueStatus)
template handle_ids source · line 39 · raw
@-S:Data -> @ids:List<&2, 0xb2b0f04555daca474f0f77d0966945c9/entity_key.Key> -> @+namespace:U32 -> List<&2, 0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S>>
template handle_snapshot source · line 43 · raw
@-S:Data -> @value:Maybe<&2, List<&2, 0xb2b0f04555daca474f0f77d0966945c9/entity_key.Key>> -> @namespace:U32 -> Maybe<&2, List<&2, 0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S>>>
template inverse_handles source · line 47 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @result:Pair(0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, C>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>, Maybe<&2, List<&2, 0xb2b0f04555daca474f0f77d0966945c9/entity_key.Key>>) -> @target:0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S> -> Pair(0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, C>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>, Maybe<&2, List<&2, 0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S>>>)
template inverse_tx_done source · line 50 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @result:Pair(0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, C>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>, Maybe<&2, List<&2, 0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S>>>) -> @undo:List<&1, @_:0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, C>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>> -> 0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.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, C>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>>> -> @events:List<&2, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>> -> @trace:0xb2b0f04555daca474f0f77d0966945c9/trace_facts.State -> Pair(0xb2b0f04555daca474f0f77d0966945c9/transaction.Tx<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, C>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>, Maybe<&2, List<&2, 0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S>>>)
template inverse_tx source · line 53 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-descriptor:0xb2b0f04555daca474f0f77d0966945c9/relation_types.Descriptor<S> -> @tx:0xb2b0f04555daca474f0f77d0966945c9/transaction.Tx<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, C>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>> -> @target:0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S> -> Pair(0xb2b0f04555daca474f0f77d0966945c9/transaction.Tx<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, C>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>, Maybe<&2, List<&2, 0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S>>>)
template relate_tx source · line 56 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-descriptor:0xb2b0f04555daca474f0f77d0966945c9/relation_types.Descriptor<S> -> @tx:0xb2b0f04555daca474f0f77d0966945c9/transaction.Tx<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, C>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>> -> @targets:Targets<S> -> Pair(0xb2b0f04555daca474f0f77d0966945c9/transaction.Tx<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, C>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.QueueStatus)
template clear_tx source · line 59 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-descriptor:0xb2b0f04555daca474f0f77d0966945c9/relation_types.Descriptor<S> -> @tx:0xb2b0f04555daca474f0f77d0966945c9/transaction.Tx<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, C>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>> -> @source:0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S> -> Pair(0xb2b0f04555daca474f0f77d0966945c9/transaction.Tx<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, C>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.QueueStatus)
template provide_read source · line 61 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-descriptor:0xb2b0f04555daca474f0f77d0966945c9/relation_types.Descriptor<S> -> ReadOnly<0xb2b0f04555daca474f0f77d0966945c9/transaction.Tx<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, C>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>, S>
template provide_write source · line 63 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-descriptor:0xb2b0f04555daca474f0f77d0966945c9/relation_types.Descriptor<S> -> Writable<0xb2b0f04555daca474f0f77d0966945c9/transaction.Tx<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, C>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>, S>
template invoke_write source · line 73 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-descriptor:0xb2b0f04555daca474f0f77d0966945c9/relation_types.Descriptor<S> -> @-Out:Type -> @-body:(@-H:Type -> @_:Writable<H, S> -> @_:Targets<S> -> @_:H -> Pair(H, Out)) -> @args:Targets<S> -> @tx:0xb2b0f04555daca474f0f77d0966945c9/transaction.Tx<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, C>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>> -> Pair(0xb2b0f04555daca474f0f77d0966945c9/transaction.Tx<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, C>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>, Out)
template invoke_read source · line 75 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-descriptor:0xb2b0f04555daca474f0f77d0966945c9/relation_types.Descriptor<S> -> @-Out:Type -> @-body:(@-H:Type -> @_:ReadOnly<H, S> -> @_:0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S> -> @_:H -> Pair(H, Out)) -> @target:0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S> -> @tx:0xb2b0f04555daca474f0f77d0966945c9/transaction.Tx<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, C>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>> -> Pair(0xb2b0f04555daca474f0f77d0966945c9/transaction.Tx<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, C>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>, Out)