@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