~/bend-docscommunity

ordinary_recoverable_array_resource.bend checks

raw source on the hub · import bendvy-ecs-core@0.1.0.6/ordinary_recoverable_array_resource.bend as Ordinary_recoverable_array_resource

10 imports
import Base
import ./world.bend as W
import ./system.bend as Sys
import ./ordinary_schema.bend as Schema
import ./owner_product.bend as Product
import ./world_resource_owner.bend as WR
import ./recovery_journal.bend as Journal
import ./recoverable_array.bend as A
import ./recoverable_array_owner.bend as ArrayOwner
import ./transaction.bend as T

Types

type Frame source · line 12 · raw

@State:Type -> @Recovery:Type -> Type

The ordinary constructor derives both lenses. Gameplay only sees opaque H.

type Attempt source · line 14 · raw

@H:Type -> @P:Type -> Type

type Write source · line 17 · raw

@-S:Data -> @-P:Type -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_schema.Resource<S, Array<P>> -> @-H:Type -> Type

type Reply source · line 52 · raw

@Error:Data -> @Out:Type -> @P:Type -> Type

type Run source · line 69 · raw

@World:Type -> @Registry:Type -> @Args:Type -> @Error:Data -> @Out:Type -> @P:Type -> Type

Templates

template replace_field source · line 19 · raw

@-S:Data -> @-P:Type -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_schema.Resource<S, Array<P>> -> @-H:Type -> @cap:Write<S, P, identity, H> -> @_:H -> @_:Array<P> -> H

template swap_field source · line 22 · raw

@-S:Data -> @-P:Type -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_schema.Resource<S, Array<P>> -> @-H:Type -> @cap:Write<S, P, identity, H> -> @_:H -> @_:U32 -> @_:P -> Attempt<H, P>

template replace source · line 25 · raw

@-S:Data -> @-P:Type -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_schema.Resource<S, Array<P>> -> @-H:Type -> @-cap:Write<S, P, identity, H> -> @owner:H -> @value:Array<P> -> H

template swap source · line 27 · raw

@-S:Data -> @-P:Type -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_schema.Resource<S, Array<P>> -> @-H:Type -> @-cap:Write<S, P, identity, H> -> @owner:H -> @index:U32 -> @value:P -> Attempt<H, P>

template release_take source · line 29 · raw

@-P:Type -> @values:List<&1, 0x14a72e1c180a5ab1f8a056d43822425c/recoverable_array.Record<P>> -> Pair(Unit, List<&1, 0x14a72e1c180a5ab1f8a056d43822425c/recoverable_array.Record<P>>)

template release_put source · line 30 · raw

@-P:Type -> @unit:Unit -> @values:List<&1, 0x14a72e1c180a5ab1f8a056d43822425c/recoverable_array.Record<P>> -> List<&1, 0x14a72e1c180a5ab1f8a056d43822425c/recoverable_array.Record<P>>

template release source · line 31 · raw

@-P:Type -> 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Lens<List<&1, 0x14a72e1c180a5ab1f8a056d43822425c/recoverable_array.Record<P>>, List<&1, 0x14a72e1c180a5ab1f8a056d43822425c/recoverable_array.Record<P>>, Unit>

template replaced source · line 33 · raw

@-S:Data -> @-C:Type -> @-P:Type -> @-E:Data -> @result:Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, Array<P>, E>, List<&1, 0x14a72e1c180a5ab1f8a056d43822425c/recovery_journal.Action(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, Array<P>, E>, List<&1, 0x14a72e1c180a5ab1f8a056d43822425c/recoverable_array.Record<P>>)>) -> Frame<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, Array<P>, E>, List<&1, 0x14a72e1c180a5ab1f8a056d43822425c/recoverable_array.Record<P>>>

template frame_replace source · line 36 · raw

@-S:Data -> @-C:Type -> @-P:Type -> @-E:Data -> @owner:Frame<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, Array<P>, E>, List<&1, 0x14a72e1c180a5ab1f8a056d43822425c/recoverable_array.Record<P>>> -> @replacement:Array<P> -> Frame<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, Array<P>, E>, List<&1, 0x14a72e1c180a5ab1f8a056d43822425c/recoverable_array.Record<P>>>

template swapped source · line 39 · raw

@-S:Data -> @-C:Type -> @-P:Type -> @-E:Data -> @result:0x14a72e1c180a5ab1f8a056d43822425c/recoverable_array_owner.Attempt<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, Array<P>, E>, List<&1, 0x14a72e1c180a5ab1f8a056d43822425c/recoverable_array.Record<P>>, P> -> Attempt<Frame<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, Array<P>, E>, List<&1, 0x14a72e1c180a5ab1f8a056d43822425c/recoverable_array.Record<P>>>, P>

template frame_swap source · line 43 · raw

@-S:Data -> @-C:Type -> @-P:Type -> @-E:Data -> @owner:Frame<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, Array<P>, E>, List<&1, 0x14a72e1c180a5ab1f8a056d43822425c/recoverable_array.Record<P>>> -> @index:U32 -> @replacement:P -> Attempt<Frame<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, Array<P>, E>, List<&1, 0x14a72e1c180a5ab1f8a056d43822425c/recoverable_array.Record<P>>>, P>

template grant source · line 46 · raw

@-S:Data -> @-C:Type -> @-P:Type -> @-E:Data -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_schema.Resource<S, Array<P>> -> Write<S, P, identity, Frame<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, Array<P>, E>, List<&1, 0x14a72e1c180a5ab1f8a056d43822425c/recoverable_array.Record<P>>>>

template succeeded source · line 48 · raw

@-Error:Data -> @outcome:0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error> -> Bool

template finished source · line 54 · raw

@-S:Data -> @-C:Type -> @-P:Type -> @-E:Data -> @-Error:Data -> @-Out:Type -> @outcome:0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error> -> @output:Out -> @result:Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, Array<P>, E>, List<&1, 0x14a72e1c180a5ab1f8a056d43822425c/recoverable_array.Record<P>>) -> 0x14a72e1c180a5ab1f8a056d43822425c/system.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, Array<P>, E>, Unit, Reply<Error, Out, P>>

template completing source · line 57 · raw

@-S:Data -> @-C:Type -> @-P:Type -> @-E:Data -> @-Error:Data -> @-Out:Type -> @world:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, Array<P>, E> -> @journal:List<&1, 0x14a72e1c180a5ab1f8a056d43822425c/recovery_journal.Action(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, Array<P>, E>, List<&1, 0x14a72e1c180a5ab1f8a056d43822425c/recoverable_array.Record<P>>)> -> @result:Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error>, Out) -> 0x14a72e1c180a5ab1f8a056d43822425c/system.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, Array<P>, E>, Unit, Reply<Error, Out, P>>

template returned source · line 60 · raw

@-S:Data -> @-C:Type -> @-P:Type -> @-E:Data -> @-Error:Data -> @-Out:Type -> @result:Pair(Frame<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, Array<P>, E>, List<&1, 0x14a72e1c180a5ab1f8a056d43822425c/recoverable_array.Record<P>>>, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error>, Out)) -> 0x14a72e1c180a5ab1f8a056d43822425c/system.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, Array<P>, E>, Unit, Reply<Error, Out, P>>

template runner source · line 63 · raw

@-S:Data -> @-C:Type -> @-P:Type -> @-E:Data -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_schema.Resource<S, Array<P>> -> @-Args:Type -> @-Error:Data -> @-Out:Type -> @-body:(@-H:Type -> @-caps:Write<S, P, identity, H> -> @_:Args -> @_:H -> Pair(H, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error>, Out))) -> @world:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, Array<P>, E> -> @args:Args -> 0x14a72e1c180a5ab1f8a056d43822425c/system.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, Array<P>, E>, Unit, Reply<Error, Out, P>>

template Registry source · line 65 · raw

@-S:Data -> @-C:Type -> @-P:Type -> @-E:Data -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_schema.Resource<S, Array<P>> -> @-Args:Type -> @-Error:Data -> @-Out:Type -> @-body:(@-H:Type -> @-caps:Write<S, P, identity, H> -> @_:Args -> @_:H -> Pair(H, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error>, Out))) -> Type

template define source · line 67 · raw

@-S:Data -> @-C:Type -> @-P:Type -> @-E:Data -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_schema.Resource<S, Array<P>> -> @-Args:Type -> @-Error:Data -> @-Out:Type -> @-body:(@-H:Type -> @-caps:Write<S, P, identity, H> -> @_:Args -> @_:H -> Pair(H, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error>, Out))) -> @world:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, Array<P>, E> -> @name:String -> 0x14a72e1c180a5ab1f8a056d43822425c/system.RegistrationResult<S, C, Array<P>, E, Args, Unit, Reply<Error, Out, P>, runner(S, C, P, E, identity, Args, Error, Out, body)>

template done source · line 73 · raw

@-S:Data -> @-C:Type -> @-P:Type -> @-E:Data -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_schema.Resource<S, Array<P>> -> @-Args:Type -> @-Error:Data -> @-Out:Type -> @-body:(@-H:Type -> @-caps:Write<S, P, identity, H> -> @_:Args -> @_:H -> Pair(H, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error>, Out))) -> @outcome:0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error> -> @output:Out -> @recovered:List<&1, 0x14a72e1c180a5ab1f8a056d43822425c/recoverable_array.Record<P>> -> @updated:Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, Array<P>, E>, 0x14a72e1c180a5ab1f8a056d43822425c/system.Registry<S, C, Array<P>, E, Args, Unit, Reply<Error, Out, P>, runner(S, C, P, E, identity, Args, Error, Out, body)>) -> Run<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, Array<P>, E>, 0x14a72e1c180a5ab1f8a056d43822425c/system.Registry<S, C, Array<P>, E, Args, Unit, Reply<Error, Out, P>, runner(S, C, P, E, identity, Args, Error, Out, body)>, Args, Error, Out, P>

template completed source · line 76 · raw

@-S:Data -> @-C:Type -> @-P:Type -> @-E:Data -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_schema.Resource<S, Array<P>> -> @-Args:Type -> @-Error:Data -> @-Out:Type -> @-body:(@-H:Type -> @-caps:Write<S, P, identity, H> -> @_:Args -> @_:H -> Pair(H, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error>, Out))) -> @result:0x14a72e1c180a5ab1f8a056d43822425c/system.RunResult<S, C, Array<P>, E, Args, Unit, Reply<Error, Out, P>, runner(S, C, P, E, identity, Args, Error, Out, body)> -> Run<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, Array<P>, E>, 0x14a72e1c180a5ab1f8a056d43822425c/system.Registry<S, C, Array<P>, E, Args, Unit, Reply<Error, Out, P>, runner(S, C, P, E, identity, Args, Error, Out, body)>, Args, Error, Out, P>

template run source · line 81 · raw

@-S:Data -> @-C:Type -> @-P:Type -> @-E:Data -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_schema.Resource<S, Array<P>> -> @-Args:Type -> @-Error:Data -> @-Out:Type -> @-body:(@-H:Type -> @-caps:Write<S, P, identity, H> -> @_:Args -> @_:H -> Pair(H, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error>, Out))) -> @registry:0x14a72e1c180a5ab1f8a056d43822425c/system.Registry<S, C, Array<P>, E, Args, Unit, Reply<Error, Out, P>, runner(S, C, P, E, identity, Args, Error, Out, body)> -> @world:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, Array<P>, E> -> @args:Args -> Run<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, Array<P>, E>, 0x14a72e1c180a5ab1f8a056d43822425c/system.Registry<S, C, Array<P>, E, Args, Unit, Reply<Error, Out, P>, runner(S, C, P, E, identity, Args, Error, Out, body)>, Args, Error, Out, P>