dependency_registration.bend checks
raw source on the hub · import bendvy-ecs-core@0.1.0.3/dependency_registration.bend as Dependency_registration
4 imports
import Base import ./dependency_plan.bend as Plan import ./dependency_executor.bend as Exec import ./execution_owner_continuation.bend as Continuation
Types
type Registry source · line 6 · raw
@-World:Type -> @-Owners:Type -> @-Error:Data -> @-Out:Data -> @-dispatch:(@_:Owners -> @_:World -> @_:U32 -> Pair(Owners, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>))) -> Type
Registry@-World:Type -> @-Owners:Type -> @-Error:Data -> @-Out:Data -> @-dispatch:(@_:Owners -> @_:World -> @_:U32 -> Pair(Owners, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>))) -> @owners:Owners -> @nodes:List<&2, 0x704c77730661eff4309838fc738ef615/dependency_plan.Node<String>> -> Registry<World, Owners, Error, Out, dispatch>
type Product source · line 9 · raw
@L:Type -> @R:Type -> Type
Product@L:Type -> @R:Type -> @left:L -> @right:R -> @leftIds:List<&2, U32> -> Product<L, R>
type ConditionRegistry source · line 48 · raw
@-World:Type -> @-Owners:Type -> @-Error:Data -> @-dispatch:(@_:Owners -> @_:World -> @_:U32 -> Pair(Owners, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Bool>))) -> Type
ConditionRegistry@-World:Type -> @-Owners:Type -> @-Error:Data -> @-dispatch:(@_:Owners -> @_:World -> @_:U32 -> Pair(Owners, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Bool>))) -> @registry:Registry<World, Owners, Error, Bool, dispatch> -> @invalid:Maybe<&2, 0x704c77730661eff4309838fc738ef615/dependency_plan.Invalid<String>> -> ConditionRegistry<World, Owners, Error, dispatch>
Definitions
def ids source · line 11 · raw
@nodes:List<&2, 0x704c77730661eff4309838fc738ef615/dependency_plan.Node<String>> -> List<&2, U32>
def contains source · line 15 · raw
@ids:List<&2, U32> -> @+id:U32 -> Bool
def condition_permission source · line 50 · raw
@allowed:Bool -> @id:U32 -> Maybe<&2, 0x704c77730661eff4309838fc738ef615/dependency_plan.Invalid<String>>
Templates
template left_returned source · line 20 · raw
@-World:Type -> @-L:Type -> @-R:Type -> @-Error:Data -> @-Out:Data -> @-leftDispatch:(@_:L -> @_:World -> @_:U32 -> Pair(L, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>))) -> @-rightDispatch:(@_:R -> @_:World -> @_:U32 -> Pair(R, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>))) -> @pair:Pair(Pair(R, List<&2, U32>), Pair(L, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>))) -> Pair(Product<L, R>, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>))
template right_returned source · line 23 · raw
@-World:Type -> @-L:Type -> @-R:Type -> @-Error:Data -> @-Out:Data -> @-leftDispatch:(@_:L -> @_:World -> @_:U32 -> Pair(L, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>))) -> @-rightDispatch:(@_:R -> @_:World -> @_:U32 -> Pair(R, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>))) -> @pair:Pair(Pair(L, List<&2, U32>), Pair(R, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>))) -> Pair(Product<L, R>, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>))
template paired_selected source · line 26 · raw
@-World:Type -> @-L:Type -> @-R:Type -> @-Error:Data -> @-Out:Data -> @-leftDispatch:(@_:L -> @_:World -> @_:U32 -> Pair(L, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>))) -> @-rightDispatch:(@_:R -> @_:World -> @_:U32 -> Pair(R, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>))) -> @selected:Bool -> @left:L -> @right:R -> @leftIds:List<&2, U32> -> @world:World -> @id:U32 -> Pair(Product<L, R>, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>))
template paired_dispatch_actual source · line 34 · raw
@-World:Type -> @-L:Type -> @-R:Type -> @-Error:Data -> @-Out:Data -> @-leftDispatch:(@_:L -> @_:World -> @_:U32 -> Pair(L, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>))) -> @-rightDispatch:(@_:R -> @_:World -> @_:U32 -> Pair(R, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>))) -> @owners:Product<L, R> -> @world:World -> @+id:U32 -> Pair(Product<L, R>, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>))
template paired_dispatch source · line 37 · raw
@-World:Type -> @-L:Type -> @-R:Type -> @-Error:Data -> @-Out:Data -> @-leftDispatch:(@_:L -> @_:World -> @_:U32 -> Pair(L, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>))) -> @-rightDispatch:(@_:R -> @_:World -> @_:U32 -> Pair(R, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>))) -> @owners:Product<L, R> -> @world:World -> @id:U32 -> Pair(Product<L, R>, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>))
template paired source · line 39 · raw
@-World:Type -> @-L:Type -> @-R:Type -> @-Error:Data -> @-Out:Data -> @-leftDispatch:(@_:L -> @_:World -> @_:U32 -> Pair(L, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>))) -> @-rightDispatch:(@_:R -> @_:World -> @_:U32 -> Pair(R, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>))) -> @left:Registry<World, L, Error, Out, leftDispatch> -> @right:Registry<World, R, Error, Out, rightDispatch> -> Registry<World, Product<L, R>, Error, Out, paired_dispatch(World, L, R, Error, Out, leftDispatch, rightDispatch)>
template empty_dispatch source · line 43 · raw
@-World:Type -> @-Error:Data -> @-Out:Data -> @owners:Unit -> @world:World -> @_:U32 -> Pair(Unit, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>))
template empty source · line 45 · raw
@-World:Type -> @-Error:Data -> @-Out:Data -> Registry<World, Unit, Error, Out, empty_dispatch(World, Error, Out)>
template empty_conditions source · line 54 · raw
@-World:Type -> @-Error:Data -> ConditionRegistry<World, Unit, Error, empty_dispatch(World, Error, Bool)>
template paired_conditions source · line 56 · raw
@-World:Type -> @-L:Type -> @-R:Type -> @-Error:Data -> @-leftDispatch:(@_:L -> @_:World -> @_:U32 -> Pair(L, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Bool>))) -> @-rightDispatch:(@_:R -> @_:World -> @_:U32 -> Pair(R, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Bool>))) -> @left:ConditionRegistry<World, L, Error, leftDispatch> -> @right:ConditionRegistry<World, R, Error, rightDispatch> -> ConditionRegistry<World, Product<L, R>, Error, paired_dispatch(World, L, R, Error, Bool, leftDispatch, rightDispatch)>