Skip to content

checkRaces beta ​

Function of @v12-engine/engine

ts
export declare function checkRaces(game: Rules): void;

Throws for races that cannot be: one there twice, one called random, a unit type or upgrade of a race the game does not have, a resource a race starts with that the game has not, or a start as data (a race's, or the game's) that names a unit type the game has not, saying which was meant where one is close. Run as a registry is made (createRegistry, every world's); for a game's own tests