Skip to content

placeStartingBase beta ​

Function of @v12-engine/engine

ts
export declare function placeStartingBase(world: World, player: PlayerId, at: Vec2, start: StartingBaseData): void;

Puts down what a start as data says (StartingBaseData): the hall at the point, what the race builds on the closest gold mine (onMine) on it, and the workers and the other units in a row on the side of the hall that faces the mine, facing it. With no mine in reach, the row faces north. A classic melee start; a race's start as data does this