relation_cleanup_engine.bend checks
raw source on the hub · import bendvy-ecs-core@0.1.0.3/relation_cleanup_engine.bend as Relation_cleanup_engine
3 imports
import Base import ./relation_types.bend as G import ./entity_key.bend as Key
Types
type Progress source · line 5 · raw
@-S:Data -> @-State:Type -> Type
Complete@-S:Data -> @-State:Type -> @world:State -> Progress<S, State>
Incomplete@-S:Data -> @-State:Type -> @world:State -> @frames:List<&2, 0x704c77730661eff4309838fc738ef615/relation_types.CleanupFrame<S>> -> Progress<S, State>
Definitions
def resumed_generic source · line 11 · raw
@-S:Data -> @-State:Type -> @observed:Pair(State, List<&2, 0x704c77730661eff4309838fc738ef615/relation_types.CleanupFrame<S>>) -> @next:(@_:State -> @_:List<&2, 0x704c77730661eff4309838fc738ef615/relation_types.CleanupFrame<S>> -> Progress<S, State>) -> Progress<S, State>
def inventory_units source · line 24 · raw
@remaining:Nat -> @nodes:Nat -> @+edges:Nat -> @descriptors:Nat -> Nat
This is the existing structural inventory bound expressed as arbitrary Nat. Counting is eager; very large inventories can spend work in arithmetic before the same driver discovers completion. No narrower integer or cap is used.
def total_units source · line 26 · raw
@-S:Data -> @remaining:Nat -> @nodes:Nat -> @edges:List<&2, 0x704c77730661eff4309838fc738ef615/relation_types.Edge<S>> -> @descriptors:List<&2, 0x704c77730661eff4309838fc738ef615/relation_types.Descriptor<S>> -> Nat
Templates
template Step source · line 8 · raw
@-S:Data -> @-State:Type -> Type
template drive source · line 14 · raw
@-S:Data -> @-State:Type -> @-step:Step(S, State) -> @fuel:Nat -> @frames:List<&2, 0x704c77730661eff4309838fc738ef615/relation_types.CleanupFrame<S>> -> @world:State -> @+namespace:U32 -> @+descriptors:List<&2, 0x704c77730661eff4309838fc738ef615/relation_types.Descriptor<S>> -> Progress<S, State>
template owner_blocks source · line 28 · raw
@-S:Data -> @-State:Type -> @-step:Step(S, State) -> @remaining:Nat -> @result:Progress<S, State> -> @+nodes:Nat -> @+edges:List<&2, 0x704c77730661eff4309838fc738ef615/relation_types.Edge<S>> -> @+namespace:U32 -> @+descriptors:List<&2, 0x704c77730661eff4309838fc738ef615/relation_types.Descriptor<S>> -> Progress<S, State>
template automatic source · line 34 · raw
@-S:Data -> @-State:Type -> @-step:Step(S, State) -> @state:State -> @+nodes:Nat -> @+edges:List<&2, 0x704c77730661eff4309838fc738ef615/relation_types.Edge<S>> -> @+namespace:U32 -> @key:0x704c77730661eff4309838fc738ef615/entity_key.Key -> @+descriptors:List<&2, 0x704c77730661eff4309838fc738ef615/relation_types.Descriptor<S>> -> Progress<S, State>
template resumed source · line 37 · raw
@-S:Data -> @-State:Type -> @observed:Pair(State, List<&2, 0x704c77730661eff4309838fc738ef615/relation_types.CleanupFrame<S>>) -> @next:(@_:State -> @_:List<&2, 0x704c77730661eff4309838fc738ef615/relation_types.CleanupFrame<S>> -> Progress<S, State>) -> Progress<S, State>