Skip to content

techTree beta ​

Function of @v12-engine/engine

ts
export declare function techTree(registry: Pick<Registry, 'units' | 'upgrades'>): {
    nodes: TechNode[];
    edges: TechEdge[];
};

The tech tree of a game's rules: its things that are made or make something (scenery and the map's creeps left out), the edges between them, and each one's tier. Tiers go by what makes what from what nothing makes and from the buildings that make the builders, require nothing and are no other's upgrade (a hall; else, where everything is made of something, the buildings that require nothing, are no upgrade and make something), each thing after what it requires; a loop of requirements stops at the number of things