Skip to content

StartingBaseData beta ​

Interface of @v12-engine/engine

ts
export interface StartingBaseData

A start as data: a hall at the start location and workers on the side of the closest gold mine, as in a classic melee game (startingBase puts it down). Every id is a unit type of the game's (checkRaces says where one is not)

Members ​

distance ​

ts
distance?: number;

How far from the hall the workers stand: 5 cells when left out

hall ​

ts
hall: string;

The unit type put down at the start location: a town hall

onMine ​

ts
onMine?: string;

What the race builds on the closest gold mine to gather it, put down there already standing (the undead's cursed mine). With it, the closest mine is found at any distance; without, the workers face a mine within 20 cells

spread ​

ts
spread?: number;

The angle between two workers in the row, in radians: 0.35 when left out

units ​

ts
units?: {
        type: string;
        count: number;
    }[];

What else is put down with the workers, in the same row after them: a race's first fighter

workers ​

ts
workers: {
        type: string;
        count: number;
    };

The workers put down beside it, facing the closest gold mine