~/bend-docscommunity

execution_access.bend checks

raw source on the hub · import bendvy-ecs-core@0.1.0.3/execution_access.bend as Execution_access

13 imports
import Base
import ./execution_query_identity.bend as Index
import ./execution_lifecycle_notices.bend as Notice
import ./execution_projection.bend as Projection
import ./execution_state.bend as State
import ./execution_declaration.bend as D
import ./world.bend as W
import ./component.bend as Component
import ./change_tick.bend as Tick
import ./chunk_column.bend as Col
import ./owner_product.bend as Product
import ./ordinary_declaration.bend as Identity
import ./ordinary_schema.bend as Schema

Types

type ComponentRead source · line 15 · raw

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

type ComponentWrite source · line 17 · raw

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

type ResourceRead source · line 19 · raw

@-H:Type -> @-V:Data -> Type

type ResourceWrite source · line 21 · raw

@-H:Type -> @-P:Type -> @-V:Data -> Type

Definitions

def resource_returned source · line 76 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-V:Type -> @put:(@_:Rest -> @_:P -> R) -> @store:C -> @handles:List<&2, 0x704c77730661eff4309838fc738ef615/world.Handle<S>> -> @tick:0x704c77730661eff4309838fc738ef615/change_tick.Tick -> @prior:Maybe<&2, 0x704c77730661eff4309838fc738ef615/change_tick.Tick> -> @rest:Rest -> @result:Pair(P, V) -> @+lifecycleView:0x704c77730661eff4309838fc738ef615/execution_lifecycle_notices.View<S> -> Pair(0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R>, V)

def resource_taken source · line 79 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-V:Data -> @put:(@_:Rest -> @_:P -> R) -> @project:(@_:P -> Pair(P, V)) -> @store:C -> @handles:List<&2, 0x704c77730661eff4309838fc738ef615/world.Handle<S>> -> @tick:0x704c77730661eff4309838fc738ef615/change_tick.Tick -> @prior:Maybe<&2, 0x704c77730661eff4309838fc738ef615/change_tick.Tick> -> @result:Pair(Rest, P) -> @+lifecycleView:0x704c77730661eff4309838fc738ef615/execution_lifecycle_notices.View<S> -> Pair(0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R>, V)

def resource_get_lens source · line 82 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-V:Data -> @lens:0x704c77730661eff4309838fc738ef615/owner_product.Lens<R, P, Rest> -> @project:(@_:P -> Pair(P, V)) -> @scope:0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R> -> Pair(0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R>, V)

def resource_owned_taken source · line 93 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-Out:Type -> @put:(@_:Rest -> @_:P -> R) -> @transform:(@_:P -> Pair(P, Out)) -> @store:C -> @handles:List<&2, 0x704c77730661eff4309838fc738ef615/world.Handle<S>> -> @tick:0x704c77730661eff4309838fc738ef615/change_tick.Tick -> @prior:Maybe<&2, 0x704c77730661eff4309838fc738ef615/change_tick.Tick> -> @result:Pair(Rest, P) -> @+lifecycleView:0x704c77730661eff4309838fc738ef615/execution_lifecycle_notices.View<S> -> Pair(0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R>, Out)

def resource_owned_lens source · line 96 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-Out:Type -> @lens:0x704c77730661eff4309838fc738ef615/owner_product.Lens<R, P, Rest> -> @transform:(@_:0x704c77730661eff4309838fc738ef615/change_tick.Tick -> @_:P -> Pair(P, Out)) -> @scope:0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R> -> Pair(0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R>, Out)

Templates

template ComponentReads source · line 23 · raw

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

template ComponentWrites source · line 24 · raw

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

template ResourceReads source · line 25 · raw

@-V:Data -> @H:Type -> Type

template ResourceWrites source · line 26 · raw

@-P:Type -> @-V:Data -> @H:Type -> Type

template component_returned source · line 28 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-V:Data -> @-lens:0x704c77730661eff4309838fc738ef615/owner_product.Lens<C, 0x704c77730661eff4309838fc738ef615/chunk_column.Column<S, P>, Rest> -> @resource:R -> @handles:List<&2, 0x704c77730661eff4309838fc738ef615/world.Handle<S>> -> @tick:0x704c77730661eff4309838fc738ef615/change_tick.Tick -> @prior:Maybe<&2, 0x704c77730661eff4309838fc738ef615/change_tick.Tick> -> @rest:Rest -> @result:Pair(0x704c77730661eff4309838fc738ef615/chunk_column.Column<S, P>, Maybe<&2, V>) -> @+lifecycleView:0x704c77730661eff4309838fc738ef615/execution_lifecycle_notices.View<S> -> Pair(0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R>, Maybe<&2, V>)

template component_taken source · line 31 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-V:Data -> @-lens:0x704c77730661eff4309838fc738ef615/owner_product.Lens<C, 0x704c77730661eff4309838fc738ef615/chunk_column.Column<S, P>, Rest> -> @-project:(@_:P -> Pair(P, V)) -> @resource:R -> @handles:List<&2, 0x704c77730661eff4309838fc738ef615/world.Handle<S>> -> @+tick:0x704c77730661eff4309838fc738ef615/change_tick.Tick -> @prior:Maybe<&2, 0x704c77730661eff4309838fc738ef615/change_tick.Tick> -> @index:U32 -> @result:Pair(Rest, 0x704c77730661eff4309838fc738ef615/chunk_column.Column<S, P>) -> @+lifecycleView:0x704c77730661eff4309838fc738ef615/execution_lifecycle_notices.View<S> -> Pair(0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R>, Maybe<&2, V>)

template component_read_physical source · line 34 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-V:Data -> @-lens:0x704c77730661eff4309838fc738ef615/owner_product.Lens<C, 0x704c77730661eff4309838fc738ef615/chunk_column.Column<S, P>, Rest> -> @-project:(@_:P -> Pair(P, V)) -> @scope:0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R> -> @offset:Maybe<&2, U32> -> Pair(0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R>, Maybe<&2, V>)

template component_read_checked source · line 38 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-V:Data -> @-lens:0x704c77730661eff4309838fc738ef615/owner_product.Lens<C, 0x704c77730661eff4309838fc738ef615/chunk_column.Column<S, P>, Rest> -> @-project:(@_:P -> Pair(P, V)) -> @allowed:Bool -> @scope:0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R> -> @handle:0x704c77730661eff4309838fc738ef615/world.Handle<S> -> Pair(0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R>, Maybe<&2, V>)

template component_get source · line 42 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-V:Data -> @-lens:0x704c77730661eff4309838fc738ef615/owner_product.Lens<C, 0x704c77730661eff4309838fc738ef615/chunk_column.Column<S, P>, Rest> -> @-project:(@_:P -> Pair(P, V)) -> @scope:0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R> -> @+handle:0x704c77730661eff4309838fc738ef615/world.Handle<S> -> Pair(0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R>, Maybe<&2, V>)

template component_access_returned source · line 45 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-V:Data -> @result:Pair(0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R>, Maybe<&2, V>) -> Pair(0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R>, 0x704c77730661eff4309838fc738ef615/component.Access<V>)

template component_access_checked source · line 49 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-V:Data -> @-lens:0x704c77730661eff4309838fc738ef615/owner_product.Lens<C, 0x704c77730661eff4309838fc738ef615/chunk_column.Column<S, P>, Rest> -> @-project:(@_:P -> Pair(P, V)) -> @allowed:Bool -> @scope:0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R> -> @handle:0x704c77730661eff4309838fc738ef615/world.Handle<S> -> Pair(0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R>, 0x704c77730661eff4309838fc738ef615/component.Access<V>)

template component_checked_get source · line 53 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-V:Data -> @-lens:0x704c77730661eff4309838fc738ef615/owner_product.Lens<C, 0x704c77730661eff4309838fc738ef615/chunk_column.Column<S, P>, Rest> -> @-project:(@_:P -> Pair(P, V)) -> @scope:0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R> -> @+handle:0x704c77730661eff4309838fc738ef615/world.Handle<S> -> Pair(0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R>, 0x704c77730661eff4309838fc738ef615/component.Access<V>)

template component_modified source · line 56 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-V:Data -> @-lens:0x704c77730661eff4309838fc738ef615/owner_product.Lens<C, 0x704c77730661eff4309838fc738ef615/chunk_column.Column<S, P>, Rest> -> @transform:(@_:P -> Pair(P, V)) -> @resource:R -> @handles:List<&2, 0x704c77730661eff4309838fc738ef615/world.Handle<S>> -> @+tick:0x704c77730661eff4309838fc738ef615/change_tick.Tick -> @prior:Maybe<&2, 0x704c77730661eff4309838fc738ef615/change_tick.Tick> -> @index:U32 -> @result:Pair(Rest, 0x704c77730661eff4309838fc738ef615/chunk_column.Column<S, P>) -> @+lifecycleView:0x704c77730661eff4309838fc738ef615/execution_lifecycle_notices.View<S> -> Pair(0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R>, Maybe<&2, V>)

template component_modify_physical source · line 59 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-V:Data -> @-lens:0x704c77730661eff4309838fc738ef615/owner_product.Lens<C, 0x704c77730661eff4309838fc738ef615/chunk_column.Column<S, P>, Rest> -> @transform:(@_:P -> Pair(P, V)) -> @scope:0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R> -> @offset:Maybe<&2, U32> -> Pair(0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R>, Maybe<&2, V>)

template component_modify_checked source · line 63 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-V:Data -> @-lens:0x704c77730661eff4309838fc738ef615/owner_product.Lens<C, 0x704c77730661eff4309838fc738ef615/chunk_column.Column<S, P>, Rest> -> @transform:(@_:P -> Pair(P, V)) -> @allowed:Bool -> @scope:0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R> -> @handle:0x704c77730661eff4309838fc738ef615/world.Handle<S> -> Pair(0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R>, Maybe<&2, V>)

template component_modify source · line 67 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-V:Data -> @-lens:0x704c77730661eff4309838fc738ef615/owner_product.Lens<C, 0x704c77730661eff4309838fc738ef615/chunk_column.Column<S, P>, Rest> -> @transform:(@_:P -> Pair(P, V)) -> @scope:0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R> -> @+handle:0x704c77730661eff4309838fc738ef615/world.Handle<S> -> Pair(0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R>, Maybe<&2, V>)

template component_modify_once source · line 70 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-V:Data -> @-lens:0x704c77730661eff4309838fc738ef615/owner_product.Lens<C, 0x704c77730661eff4309838fc738ef615/chunk_column.Column<S, P>, Rest> -> @transform:(@_:P -> Pair(P, V)) -> @scope:0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R> -> @handle:0x704c77730661eff4309838fc738ef615/world.Handle<S> -> Pair(0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R>, Maybe<&2, V>)

template component_read source · line 72 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-V:Data -> @-lens:0x704c77730661eff4309838fc738ef615/owner_product.Lens<C, 0x704c77730661eff4309838fc738ef615/chunk_column.Column<S, P>, Rest> -> @-project:(@_:P -> Pair(P, V)) -> @projection:0x704c77730661eff4309838fc738ef615/execution_projection.Affine<P, V, project> -> @identity:0x704c77730661eff4309838fc738ef615/ordinary_declaration.Declaration<S, P> -> 0x704c77730661eff4309838fc738ef615/execution_declaration.Declaration<S, C, R, ComponentReads(S, V)>

template component_write source · line 74 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-V:Data -> @-lens:0x704c77730661eff4309838fc738ef615/owner_product.Lens<C, 0x704c77730661eff4309838fc738ef615/chunk_column.Column<S, P>, Rest> -> @-project:(@_:P -> Pair(P, V)) -> @projection:0x704c77730661eff4309838fc738ef615/execution_projection.Affine<P, V, project> -> @identity:0x704c77730661eff4309838fc738ef615/ordinary_declaration.Declaration<S, P> -> 0x704c77730661eff4309838fc738ef615/execution_declaration.Declaration<S, C, R, ComponentWrites(S, P, V)>

template resource_get source · line 85 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-V:Data -> @-lens:0x704c77730661eff4309838fc738ef615/owner_product.Lens<R, P, Rest> -> @-project:(@_:P -> Pair(P, V)) -> @scope:0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R> -> Pair(0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R>, V)

template resource_transform_taken source · line 87 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-V:Data -> @-lens:0x704c77730661eff4309838fc738ef615/owner_product.Lens<R, P, Rest> -> @transform:(@_:P -> Pair(P, V)) -> @store:C -> @handles:List<&2, 0x704c77730661eff4309838fc738ef615/world.Handle<S>> -> @tick:0x704c77730661eff4309838fc738ef615/change_tick.Tick -> @prior:Maybe<&2, 0x704c77730661eff4309838fc738ef615/change_tick.Tick> -> @result:Pair(Rest, P) -> @+lifecycleView:0x704c77730661eff4309838fc738ef615/execution_lifecycle_notices.View<S> -> Pair(0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R>, V)

template resource_modify source · line 90 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-V:Data -> @-lens:0x704c77730661eff4309838fc738ef615/owner_product.Lens<R, P, Rest> -> @transform:(@_:P -> Pair(P, V)) -> @scope:0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R> -> Pair(0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R>, V)

template resource_own source · line 99 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-lens:0x704c77730661eff4309838fc738ef615/owner_product.Lens<R, P, Rest> -> @-Out:Type -> @transform:(@_:P -> Pair(P, Out)) -> @scope:0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R> -> Pair(0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R>, Out)

template resource_own_at source · line 102 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-lens:0x704c77730661eff4309838fc738ef615/owner_product.Lens<R, P, Rest> -> @-Out:Type -> @transform:(@_:0x704c77730661eff4309838fc738ef615/change_tick.Tick -> @_:P -> Pair(P, Out)) -> @scope:0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R> -> Pair(0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R>, Out)

The interpreter supplies the admitted execution tick; gameplay cannot choose it.

template resource_read source · line 104 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-V:Data -> @-lens:0x704c77730661eff4309838fc738ef615/owner_product.Lens<R, P, Rest> -> @-project:(@_:P -> Pair(P, V)) -> @projection:0x704c77730661eff4309838fc738ef615/execution_projection.Affine<P, V, project> -> @identity:0x704c77730661eff4309838fc738ef615/ordinary_schema.Resource<S, P> -> 0x704c77730661eff4309838fc738ef615/execution_declaration.Declaration<S, C, R, ResourceReads(V)>

template resource_write source · line 106 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-V:Data -> @-lens:0x704c77730661eff4309838fc738ef615/owner_product.Lens<R, P, Rest> -> @-project:(@_:P -> Pair(P, V)) -> @projection:0x704c77730661eff4309838fc738ef615/execution_projection.Affine<P, V, project> -> @identity:0x704c77730661eff4309838fc738ef615/ordinary_schema.Resource<S, P> -> 0x704c77730661eff4309838fc738ef615/execution_declaration.Declaration<S, C, R, ResourceWrites(P, V)>

template component_modify_field source · line 108 · raw

@-S:Data -> @-H:Type -> @-P:Type -> @-V:Data -> @cap:ComponentWrite<S, H, P, V> -> @_:(@_:P -> Pair(P, V)) -> @_:H -> @_:0x704c77730661eff4309838fc738ef615/world.Handle<S> -> Pair(H, Maybe<&2, V>)

template resource_modify_field source · line 111 · raw

@-H:Type -> @-P:Type -> @-V:Data -> @cap:ResourceWrite<H, P, V> -> @_:(@_:P -> Pair(P, V)) -> @_:H -> Pair(H, V)

template component_read_field source · line 114 · raw

@-S:Data -> @-H:Type -> @-V:Data -> @cap:ComponentRead<S, H, V> -> @_:H -> @_:0x704c77730661eff4309838fc738ef615/world.Handle<S> -> Pair(H, Maybe<&2, V>)

template resource_read_field source · line 117 · raw

@-H:Type -> @-V:Data -> @cap:ResourceRead<H, V> -> @_:H -> Pair(H, V)

template resource_own_field source · line 121 · raw

@-H:Type -> @-P:Type -> @-V:Data -> @-Out:Type -> @cap:ResourceWrite<H, P, V> -> @_:(@_:P -> Pair(P, Out)) -> @_:H -> Pair(H, Out)

template resource_own_at_field source · line 125 · raw

@-H:Type -> @-P:Type -> @-V:Data -> @-Out:Type -> @cap:ResourceWrite<H, P, V> -> @_:(@_:0x704c77730661eff4309838fc738ef615/change_tick.Tick -> @_:P -> Pair(P, Out)) -> @_:H -> Pair(H, Out)

template component_checked_get_field source · line 129 · raw

@-S:Data -> @-H:Type -> @-P:Type -> @-V:Data -> @cap:ComponentWrite<S, H, P, V> -> @_:H -> @_:0x704c77730661eff4309838fc738ef615/world.Handle<S> -> Pair(H, 0x704c77730661eff4309838fc738ef615/component.Access<V>)