hierarchy_provider.bend checks
raw source on the hub · import bendvy-ecs-core@0.1.0.5/hierarchy_provider.bend as Hierarchy_provider
10 imports
import Base import entity_key.bend as Key import ./relation_types.bend as G import ./relation_graph.bend as Graph import ./relation_commands.bend as A import ./relation_reorder.bend as Reorder import ./relation_providers.bend as Relations import ./world.bend as W import ./capabilities.bend as Cap import ./hierarchy_traversal.bend as T
Types
type Path source · line 12 · raw
@S:Data -> Data
Complete@S:Data -> @handles:List<&2, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/world.Handle<S>> -> Path<S>
Incomplete@S:Data -> @handles:List<&2, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/world.Handle<S>> -> @pending:List<&2, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/world.Handle<S>> -> Path<S>
type Frame source · line 15 · raw
@S:Data -> Data
Frame@S:Data -> @entity:0x2a0aaf4f2cb3f416a9b91fd887916a5d/world.Handle<S> -> @parent:Maybe<&2, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/world.Handle<S>> -> @children:List<&2, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/world.Handle<S>> -> @ancestors:Path<S> -> @root:Maybe<&2, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/world.Handle<S>> -> @depth:Path<S> -> @breadth:Path<S> -> Frame<S>
type Read source · line 17 · raw
@H:Type -> @S:Data -> Type
Read@H:Type -> @S:Data -> @lookup:0x2a0aaf4f2cb3f416a9b91fd887916a5d/capabilities.Request<H, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/world.Handle<S>, Maybe<&2, Frame<S>>> -> Read<H, S>
Definitions
def read source · line 43 · raw
@-H:Type -> @-S:Data -> @caps:Read<H, S> -> @owner:H -> @target:0x2a0aaf4f2cb3f416a9b91fd887916a5d/world.Handle<S> -> Pair(H, Maybe<&2, Frame<S>>)
Templates
template path source · line 19 · raw
@-S:Data -> @walk:0x2a0aaf4f2cb3f416a9b91fd887916a5d/hierarchy_traversal.Walk -> @+namespace:U32 -> Path<S>
template handle source · line 23 · raw
@-S:Data -> @id:Maybe<&2, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/entity_key.Key> -> @namespace:U32 -> Maybe<&2, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/world.Handle<S>>
template snapshot source · line 27 · raw
@-S:Data -> @+graph:0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_types.Graph<S> -> @+descriptor:0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_types.Descriptor<S> -> @target:0x2a0aaf4f2cb3f416a9b91fd887916a5d/world.Handle<S> -> Frame<S>
template store_snapshot source · line 30 · raw
@-S:Data -> @-C:Type -> @store:0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_commands.Store<S, C> -> @descriptor:0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_types.Descriptor<S> -> @target:0x2a0aaf4f2cb3f416a9b91fd887916a5d/world.Handle<S> -> Pair(0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_commands.Store<S, C>, Frame<S>)
template present source · line 33 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @result:Pair(0x2a0aaf4f2cb3f416a9b91fd887916a5d/world.World<S, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_commands.Store<S, C>, R, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_commands.Notice<S, E>>, Frame<S>) -> Pair(0x2a0aaf4f2cb3f416a9b91fd887916a5d/world.World<S, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_commands.Store<S, C>, R, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_commands.Notice<S, E>>, Maybe<&2, Frame<S>>)
template checked source · line 36 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-descriptor:0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_types.HierarchyDescriptor<S> -> @observed:Pair(0x2a0aaf4f2cb3f416a9b91fd887916a5d/world.World<S, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_commands.Store<S, C>, R, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_commands.Notice<S, E>>, Bool) -> @target:0x2a0aaf4f2cb3f416a9b91fd887916a5d/world.Handle<S> -> Pair(0x2a0aaf4f2cb3f416a9b91fd887916a5d/world.World<S, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_commands.Store<S, C>, R, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_commands.Notice<S, E>>, Maybe<&2, Frame<S>>)
template lookup source · line 40 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-descriptor:0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_types.HierarchyDescriptor<S> -> @world:0x2a0aaf4f2cb3f416a9b91fd887916a5d/world.World<S, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_commands.Store<S, C>, R, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_commands.Notice<S, E>> -> @target:0x2a0aaf4f2cb3f416a9b91fd887916a5d/world.Handle<S> -> Pair(0x2a0aaf4f2cb3f416a9b91fd887916a5d/world.World<S, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_commands.Store<S, C>, R, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_commands.Notice<S, E>>, Maybe<&2, Frame<S>>)
template grant source · line 46 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-descriptor:0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_types.HierarchyDescriptor<S> -> @-Out:Type -> @-body:(@-H:Type -> @_:Read<H, S> -> @_:0x2a0aaf4f2cb3f416a9b91fd887916a5d/world.Handle<S> -> @_:H -> Pair(H, Out)) -> @target:0x2a0aaf4f2cb3f416a9b91fd887916a5d/world.Handle<S> -> @world:0x2a0aaf4f2cb3f416a9b91fd887916a5d/world.World<S, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_commands.Store<S, C>, R, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_commands.Notice<S, E>> -> Pair(0x2a0aaf4f2cb3f416a9b91fd887916a5d/world.World<S, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_commands.Store<S, C>, R, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_commands.Notice<S, E>>, Out)