StartingBaseData beta
Interface of @v12-engine/engine
export interface StartingBaseDataA 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
distance?: number;How far from the hall the workers stand: 5 cells when left out
hall
hall: string;The unit type put down at the start location: a town hall
onMine
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
spread?: number;The angle between two workers in the row, in radians: 0.35 when left out
units
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
workers: {
type: string;
count: number;
};The workers put down beside it, facing the closest gold mine