Skip to content

ResourceDef beta ​

Interface of @v12-engine/engine

ts
export interface ResourceDef

Something players have amounts of and pay with, like gold, lumber or crystals. A game module lists its own

Members ​

id ​

ts
id: ResourceId;

The resource's id, which prices, players' amounts and gatherers name it by

name ​

ts
name: string;

What the player sees the resource called

start ​

ts
start?: number;

What every player starts a game with. Nothing when left out

upkeep ​

ts
upkeep?: boolean;

What workers gather of it is cut by the upkeep of the army, see UpkeepTier