~/bend-docscommunity

relation_providers.bend checks

raw source on the hub · import bendvy-ecs-core@0.1.0.7/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.

type ReadOnly source · line 15 · raw

@-H:Type -> @S:Data -> Type

type Writable source · line 17 · raw

@-H:Type -> @S:Data -> Type

Definitions

def relate_live source · line 67 · raw

@-H:Type -> @-S:Data -> @caps:Writable<H, S> -> @owner:H -> @args:Targets<S> -> Pair(H, 0x7e321819d0ff210531780719c7674cef/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:0x7e321819d0ff210531780719c7674cef/world.Handle<S> -> Pair(H, Maybe<&2, List<&2, 0x7e321819d0ff210531780719c7674cef/world.Handle<S>>>)

Templates

template read_field source · line 19 · raw

@-H:Type -> @-S:Data -> @caps:ReadOnly<H, S> -> 0x7e321819d0ff210531780719c7674cef/capabilities.Request<H, 0x7e321819d0ff210531780719c7674cef/world.Handle<S>, Maybe<&2, List<&2, 0x7e321819d0ff210531780719c7674cef/world.Handle<S>>>>

template write_inverse_field source · line 22 · raw

@-H:Type -> @-S:Data -> @caps:Writable<H, S> -> 0x7e321819d0ff210531780719c7674cef/capabilities.Request<H, 0x7e321819d0ff210531780719c7674cef/world.Handle<S>, Maybe<&2, List<&2, 0x7e321819d0ff210531780719c7674cef/world.Handle<S>>>>

template relate_field source · line 25 · raw

@-H:Type -> @-S:Data -> @caps:Writable<H, S> -> 0x7e321819d0ff210531780719c7674cef/capabilities.Request<H, Targets<S>, 0x7e321819d0ff210531780719c7674cef/relation_commands.QueueStatus>

template clear_field source · line 28 · raw

@-H:Type -> @-S:Data -> @caps:Writable<H, S> -> 0x7e321819d0ff210531780719c7674cef/capabilities.Request<H, 0x7e321819d0ff210531780719c7674cef/world.Handle<S>, 0x7e321819d0ff210531780719c7674cef/relation_commands.QueueStatus>

template read source · line 31 · raw

@-H:Type -> @-S:Data -> @-caps:ReadOnly<H, S> -> @owner:H -> @target:0x7e321819d0ff210531780719c7674cef/world.Handle<S> -> Pair(H, Maybe<&2, List<&2, 0x7e321819d0ff210531780719c7674cef/world.Handle<S>>>)

template inverse source · line 33 · raw

@-H:Type -> @-S:Data -> @-caps:Writable<H, S> -> @owner:H -> @target:0x7e321819d0ff210531780719c7674cef/world.Handle<S> -> Pair(H, Maybe<&2, List<&2, 0x7e321819d0ff210531780719c7674cef/world.Handle<S>>>)

template relate source · line 35 · raw

@-H:Type -> @-S:Data -> @-caps:Writable<H, S> -> @owner:H -> @targets:Targets<S> -> Pair(H, 0x7e321819d0ff210531780719c7674cef/relation_commands.QueueStatus)

template unrelate source · line 37 · raw

@-H:Type -> @-S:Data -> @-caps:Writable<H, S> -> @owner:H -> @source:0x7e321819d0ff210531780719c7674cef/world.Handle<S> -> Pair(H, 0x7e321819d0ff210531780719c7674cef/relation_commands.QueueStatus)

template handle_ids source · line 39 · raw

@-S:Data -> @ids:List<&2, 0x7e321819d0ff210531780719c7674cef/entity_key.Key> -> @+namespace:U32 -> List<&2, 0x7e321819d0ff210531780719c7674cef/world.Handle<S>>

template handle_snapshot source · line 43 · raw

@-S:Data -> @value:Maybe<&2, List<&2, 0x7e321819d0ff210531780719c7674cef/entity_key.Key>> -> @namespace:U32 -> Maybe<&2, List<&2, 0x7e321819d0ff210531780719c7674cef/world.Handle<S>>>

template inverse_handles source · line 47 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @result:Pair(0x7e321819d0ff210531780719c7674cef/world.World<S, 0x7e321819d0ff210531780719c7674cef/relation_commands.Store<S, C>, R, 0x7e321819d0ff210531780719c7674cef/relation_commands.Notice<S, E>>, Maybe<&2, List<&2, 0x7e321819d0ff210531780719c7674cef/entity_key.Key>>) -> @target:0x7e321819d0ff210531780719c7674cef/world.Handle<S> -> Pair(0x7e321819d0ff210531780719c7674cef/world.World<S, 0x7e321819d0ff210531780719c7674cef/relation_commands.Store<S, C>, R, 0x7e321819d0ff210531780719c7674cef/relation_commands.Notice<S, E>>, Maybe<&2, List<&2, 0x7e321819d0ff210531780719c7674cef/world.Handle<S>>>)

template inverse_tx_done source · line 50 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @result:Pair(0x7e321819d0ff210531780719c7674cef/world.World<S, 0x7e321819d0ff210531780719c7674cef/relation_commands.Store<S, C>, R, 0x7e321819d0ff210531780719c7674cef/relation_commands.Notice<S, E>>, Maybe<&2, List<&2, 0x7e321819d0ff210531780719c7674cef/world.Handle<S>>>) -> @undo:List<&1, @_:0x7e321819d0ff210531780719c7674cef/world.World<S, 0x7e321819d0ff210531780719c7674cef/relation_commands.Store<S, C>, R, 0x7e321819d0ff210531780719c7674cef/relation_commands.Notice<S, E>> -> 0x7e321819d0ff210531780719c7674cef/world.World<S, 0x7e321819d0ff210531780719c7674cef/relation_commands.Store<S, C>, R, 0x7e321819d0ff210531780719c7674cef/relation_commands.Notice<S, E>>> -> @commands:List<&1, 0x7e321819d0ff210531780719c7674cef/deferred_command.Command<0x7e321819d0ff210531780719c7674cef/world.World<S, 0x7e321819d0ff210531780719c7674cef/relation_commands.Store<S, C>, R, 0x7e321819d0ff210531780719c7674cef/relation_commands.Notice<S, E>>>> -> @events:List<&2, 0x7e321819d0ff210531780719c7674cef/relation_commands.Notice<S, E>> -> @trace:0x7e321819d0ff210531780719c7674cef/trace_facts.State -> Pair(0x7e321819d0ff210531780719c7674cef/transaction.Tx<0x7e321819d0ff210531780719c7674cef/world.World<S, 0x7e321819d0ff210531780719c7674cef/relation_commands.Store<S, C>, R, 0x7e321819d0ff210531780719c7674cef/relation_commands.Notice<S, E>>, 0x7e321819d0ff210531780719c7674cef/relation_commands.Notice<S, E>>, Maybe<&2, List<&2, 0x7e321819d0ff210531780719c7674cef/world.Handle<S>>>)

template inverse_tx source · line 53 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-descriptor:0x7e321819d0ff210531780719c7674cef/relation_types.Descriptor<S> -> @tx:0x7e321819d0ff210531780719c7674cef/transaction.Tx<0x7e321819d0ff210531780719c7674cef/world.World<S, 0x7e321819d0ff210531780719c7674cef/relation_commands.Store<S, C>, R, 0x7e321819d0ff210531780719c7674cef/relation_commands.Notice<S, E>>, 0x7e321819d0ff210531780719c7674cef/relation_commands.Notice<S, E>> -> @target:0x7e321819d0ff210531780719c7674cef/world.Handle<S> -> Pair(0x7e321819d0ff210531780719c7674cef/transaction.Tx<0x7e321819d0ff210531780719c7674cef/world.World<S, 0x7e321819d0ff210531780719c7674cef/relation_commands.Store<S, C>, R, 0x7e321819d0ff210531780719c7674cef/relation_commands.Notice<S, E>>, 0x7e321819d0ff210531780719c7674cef/relation_commands.Notice<S, E>>, Maybe<&2, List<&2, 0x7e321819d0ff210531780719c7674cef/world.Handle<S>>>)

template relate_tx source · line 56 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-descriptor:0x7e321819d0ff210531780719c7674cef/relation_types.Descriptor<S> -> @tx:0x7e321819d0ff210531780719c7674cef/transaction.Tx<0x7e321819d0ff210531780719c7674cef/world.World<S, 0x7e321819d0ff210531780719c7674cef/relation_commands.Store<S, C>, R, 0x7e321819d0ff210531780719c7674cef/relation_commands.Notice<S, E>>, 0x7e321819d0ff210531780719c7674cef/relation_commands.Notice<S, E>> -> @targets:Targets<S> -> Pair(0x7e321819d0ff210531780719c7674cef/transaction.Tx<0x7e321819d0ff210531780719c7674cef/world.World<S, 0x7e321819d0ff210531780719c7674cef/relation_commands.Store<S, C>, R, 0x7e321819d0ff210531780719c7674cef/relation_commands.Notice<S, E>>, 0x7e321819d0ff210531780719c7674cef/relation_commands.Notice<S, E>>, 0x7e321819d0ff210531780719c7674cef/relation_commands.QueueStatus)

template clear_tx source · line 59 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-descriptor:0x7e321819d0ff210531780719c7674cef/relation_types.Descriptor<S> -> @tx:0x7e321819d0ff210531780719c7674cef/transaction.Tx<0x7e321819d0ff210531780719c7674cef/world.World<S, 0x7e321819d0ff210531780719c7674cef/relation_commands.Store<S, C>, R, 0x7e321819d0ff210531780719c7674cef/relation_commands.Notice<S, E>>, 0x7e321819d0ff210531780719c7674cef/relation_commands.Notice<S, E>> -> @source:0x7e321819d0ff210531780719c7674cef/world.Handle<S> -> Pair(0x7e321819d0ff210531780719c7674cef/transaction.Tx<0x7e321819d0ff210531780719c7674cef/world.World<S, 0x7e321819d0ff210531780719c7674cef/relation_commands.Store<S, C>, R, 0x7e321819d0ff210531780719c7674cef/relation_commands.Notice<S, E>>, 0x7e321819d0ff210531780719c7674cef/relation_commands.Notice<S, E>>, 0x7e321819d0ff210531780719c7674cef/relation_commands.QueueStatus)

template provide_read source · line 61 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-descriptor:0x7e321819d0ff210531780719c7674cef/relation_types.Descriptor<S> -> ReadOnly<0x7e321819d0ff210531780719c7674cef/transaction.Tx<0x7e321819d0ff210531780719c7674cef/world.World<S, 0x7e321819d0ff210531780719c7674cef/relation_commands.Store<S, C>, R, 0x7e321819d0ff210531780719c7674cef/relation_commands.Notice<S, E>>, 0x7e321819d0ff210531780719c7674cef/relation_commands.Notice<S, E>>, S>

template provide_write source · line 63 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-descriptor:0x7e321819d0ff210531780719c7674cef/relation_types.Descriptor<S> -> Writable<0x7e321819d0ff210531780719c7674cef/transaction.Tx<0x7e321819d0ff210531780719c7674cef/world.World<S, 0x7e321819d0ff210531780719c7674cef/relation_commands.Store<S, C>, R, 0x7e321819d0ff210531780719c7674cef/relation_commands.Notice<S, E>>, 0x7e321819d0ff210531780719c7674cef/relation_commands.Notice<S, E>>, S>

template invoke_write source · line 73 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-descriptor:0x7e321819d0ff210531780719c7674cef/relation_types.Descriptor<S> -> @-Out:Type -> @-body:(@-H:Type -> @_:Writable<H, S> -> @_:Targets<S> -> @_:H -> Pair(H, Out)) -> @args:Targets<S> -> @tx:0x7e321819d0ff210531780719c7674cef/transaction.Tx<0x7e321819d0ff210531780719c7674cef/world.World<S, 0x7e321819d0ff210531780719c7674cef/relation_commands.Store<S, C>, R, 0x7e321819d0ff210531780719c7674cef/relation_commands.Notice<S, E>>, 0x7e321819d0ff210531780719c7674cef/relation_commands.Notice<S, E>> -> Pair(0x7e321819d0ff210531780719c7674cef/transaction.Tx<0x7e321819d0ff210531780719c7674cef/world.World<S, 0x7e321819d0ff210531780719c7674cef/relation_commands.Store<S, C>, R, 0x7e321819d0ff210531780719c7674cef/relation_commands.Notice<S, E>>, 0x7e321819d0ff210531780719c7674cef/relation_commands.Notice<S, E>>, Out)

template invoke_read source · line 75 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-descriptor:0x7e321819d0ff210531780719c7674cef/relation_types.Descriptor<S> -> @-Out:Type -> @-body:(@-H:Type -> @_:ReadOnly<H, S> -> @_:0x7e321819d0ff210531780719c7674cef/world.Handle<S> -> @_:H -> Pair(H, Out)) -> @target:0x7e321819d0ff210531780719c7674cef/world.Handle<S> -> @tx:0x7e321819d0ff210531780719c7674cef/transaction.Tx<0x7e321819d0ff210531780719c7674cef/world.World<S, 0x7e321819d0ff210531780719c7674cef/relation_commands.Store<S, C>, R, 0x7e321819d0ff210531780719c7674cef/relation_commands.Notice<S, E>>, 0x7e321819d0ff210531780719c7674cef/relation_commands.Notice<S, E>> -> Pair(0x7e321819d0ff210531780719c7674cef/transaction.Tx<0x7e321819d0ff210531780719c7674cef/world.World<S, 0x7e321819d0ff210531780719c7674cef/relation_commands.Store<S, C>, R, 0x7e321819d0ff210531780719c7674cef/relation_commands.Notice<S, E>>, 0x7e321819d0ff210531780719c7674cef/relation_commands.Notice<S, E>>, Out)