def install

bendvy-ecs-core@0.1.0.4 · ordinary_app_hierarchy.bend:26

import bendvy-ecs-core@0.1.0.4/ordinary_app_hierarchy.bend as OrdinaryAppHierarchy
import Base
import bendvy-ecs-core@0.1.0.4/ordinary_app_relation.bend as Relation
import bendvy-ecs-core@0.1.0.4/ordinary_app_composer.bend as Build
import bendvy-ecs-core@0.1.0.4/ordinary_app_observation_data.bend as DTO
import bendvy-ecs-core@0.1.0.4/ordinary_app_registration_fields.bend as Fields
import bendvy-ecs-core@0.1.0.4/relation_types.bend as G

26# Install hierarchy observation on the existing App, preserving World and owners.
27# Does not create parent edges. See docs/parity/hierarchy.md for accepted App and
28# traversal scenarios; relate_app followed by barrier_app establishes visible edges.
29def install(~S:Data,~C:Type,~R:Type,~E:Data,~hierarchy:G.HierarchyDescriptor<S>,~Owners:Type,~Rows:Data,~prior:Relation.World(~S,~C,~R,~E) -> Relation.World(~S,~C,~R,~E) & DTO.Observation<Rows>,~fold:Owners -> Owners & List<&2,Fields.Fields<S>>,app:Build.Registered<S,Relation.World(~S,~C,~R,~E),Owners,Rows,prior,fold>) -> Application(~S,~C,~R,~E,~hierarchy,~Owners,~Rows,~prior,~fold):
30  Relation.install(~S,~C,~R,~E,~declaration(~S,hierarchy),~Owners,~Rows,~prior,~fold,app)

Uses (10)

Used by (0)

No other definition uses this definition.