Skip to content

@lands.io/mod-sdk / UnitInfo

Interface: UnitInfo

Unit cost and properties

Table of contents

Properties

Properties

constructionDuration

Optional constructionDuration: number


cost

cost: (player: Player) => number

Type declaration

▸ (player): number

Parameters
Name Type
player Player
Returns

number


damage

Optional damage: number


maxHealth

Optional maxHealth: number


territoryBound

territoryBound: boolean


Source Code

View full implementation
/** Unit cost and properties */
export interface UnitInfo {
  cost: (player: Player) => Gold;
  territoryBound: boolean;
  maxHealth?: number;
  damage?: number;
  constructionDuration?: number;
}