Skip to content

@lands.io/mod-sdk / AttackTarget

Interface: AttackTarget

Target information for attack actions.

Hierarchy

AttackTarget

Table of contents

Properties

Properties

attackId

Optional attackId: string

Inherited from

ActionTarget.attackId


targetPlayer

targetPlayer: Player | TerraNullius

Overrides

ActionTarget.targetPlayer


targetTile

Optional targetTile: number

Inherited from

ActionTarget.targetTile


troops

troops: number

Overrides

ActionTarget.troops


Source Code

View full implementation
/**
 * Target information for attack actions.
 */
export interface AttackTarget extends ActionTarget {
  targetPlayer: Player | TerraNullius;
  troops: number;
}