Skip to content

TechNode beta ​

Interface of @v12-engine/engine

ts
export interface TechNode

A thing of a tech tree: a unit or building type, or an upgrade, on its tier (0: made from the start)

Members ​

id ​

ts
id: string;

The unit type or upgrade id this node stands for

kind ​

ts
kind: 'unit' | 'building' | 'upgrade';

Whether the node is a unit, a building or an upgrade

name ​

ts
name: string;

The name shown for the node

race ​

ts
race?: string;

The race it is of, where it says

tier ​

ts
tier: number;

How far the node is from the start of the tree, 0 for what is made from the start