execution_command_local.bend checks
raw source on the hub · import bendvy-ecs-core@0.1.0.3/execution_command_local.bend as Execution_command_local
6 imports
import Base import ./execution_effects.bend as E import ./world.bend as W import ./execution_system.bend as Sys import ./execution_command_buffer.bend as Buffer import ./execution_command_permission.bend as Permission
Types
type Local source · line 11 · raw
@-S:Data -> @-P:Type -> @-D:Type -> @-User:Type -> Type
The buffer is a separate affine owner from gameplay scope and user captures. This wrapper is the registered system's Local, so every executor outcome returns it through the existing system owner, including refusal/body error.
Local@-S:Data -> @-P:Type -> @-D:Type -> @-User:Type -> @user:User -> @commands:0x704c77730661eff4309838fc738ef615/execution_command_buffer.Buffer<S, P, D> -> @permission:0x704c77730661eff4309838fc738ef615/execution_command_permission.Permission -> Local<S, P, D, User>
type Commands source · line 13 · raw
@-Q:Type -> @-S:Data -> @-P:Type -> Type
Commands@-Q:Type -> @-S:Data -> @-P:Type -> @insert:(@_:Q -> @_:0x704c77730661eff4309838fc738ef615/world.Handle<S> -> @_:P -> Q) -> @remove:(@_:Q -> @_:0x704c77730661eff4309838fc738ef615/world.Handle<S> -> Q) -> Commands<Q, S, P>
Templates
template fresh source · line 15 · raw
@-S:Data -> @-P:Type -> @-D:Type -> @-User:Type -> @user:User -> @permission:0x704c77730661eff4309838fc738ef615/execution_command_permission.Permission -> Local<S, P, D, User>
template insert_field source · line 17 · raw
@-Q:Type -> @-S:Data -> @-P:Type -> @commands:Commands<Q, S, P> -> @_:Q -> @_:0x704c77730661eff4309838fc738ef615/world.Handle<S> -> @_:P -> Q
template remove_field source · line 20 · raw
@-Q:Type -> @-S:Data -> @-P:Type -> @commands:Commands<Q, S, P> -> @_:Q -> @_:0x704c77730661eff4309838fc738ef615/world.Handle<S> -> Q
template returned source · line 23 · raw
@-S:Data -> @-P:Type -> @-D:Type -> @-User:Type -> @-Error:Data -> @-Out:Data -> @-H:Type -> @permission:0x704c77730661eff4309838fc738ef615/execution_command_permission.Permission -> @result:Pair(H, Pair(0x704c77730661eff4309838fc738ef615/execution_command_buffer.Buffer<S, P, D>, Pair(User, 0x704c77730661eff4309838fc738ef615/execution_system.Completion<Error, Out>))) -> Pair(H, Pair(Local<S, P, D, User>, 0x704c77730661eff4309838fc738ef615/execution_system.Completion<Error, Out>))
template canonical source · line 31 · raw
@-S:Data -> @-P:Type -> @-D:Type -> Commands<0x704c77730661eff4309838fc738ef615/execution_command_buffer.Buffer<S, P, D>, S, P>
Internal body adapter; the ordinary registration layer must select the component family from its closed schema and inventory this buffer for barriers. Both H and Q remain abstract to gameplay. The body never sees a World, the allocator, the concrete buffer constructor, or an application callback.
template invoke source · line 33 · raw
@-S:Data -> @-P:Type -> @-D:Type -> @-Permit:Data -> @-F:(@_:Type -> Type) -> @-effects:0x704c77730661eff4309838fc738ef615/execution_effects.Effects<F> -> @-User:Type -> @-Error:Data -> @-Out:Data -> @-Ops:(@_:Data -> @_:(@_:Type -> Type) -> @_:Type -> @_:Type -> Type) -> @-body:(@-Permit:Data -> @-F:(@_:Type -> Type) -> @-effects:0x704c77730661eff4309838fc738ef615/execution_effects.Effects<F> -> @-H:Type -> @-Q:Type -> @-caps:Ops(Permit, F, H, Q) -> @-commands:Commands<Q, S, P> -> @_:H -> @_:Q -> @_:User -> F(Pair(H, Pair(Q, Pair(User, 0x704c77730661eff4309838fc738ef615/execution_system.Completion<Error, Out>))))) -> @-H:Type -> @-caps:Ops(Permit, F, H, 0x704c77730661eff4309838fc738ef615/execution_command_buffer.Buffer<S, P, D>) -> @scope:H -> @local:Local<S, P, D, User> -> F(Pair(H, Pair(Local<S, P, D, User>, 0x704c77730661eff4309838fc738ef615/execution_system.Completion<Error, Out>)))