interface ResourceData {
    absorb: number;
    facing: null | number;
    hitPoints: number;
    magicPoints: number;
    maxHitPoints: number;
    maxMagicPoints: number;
    maxTacticalPoints: number;
    tacticalPoints: number;
    x: number;
    y: number;
}

Properties

absorb: number

The strength of the absorb shield on the actor. Represented as a percentage of the actor's health.

facing: null | number

The unit's facing. Null for games that do not support facing.

hitPoints: number

The unit's current hit points.

magicPoints: number

The current MP of the actor.

maxHitPoints: number

The unit's maximum hit points.

maxMagicPoints: number

The maximum MP of the actor.

maxTacticalPoints: number

The maximum TP of the actor. Only used in older expansions.

tacticalPoints: number

The current TP of the actor. Only used in older expansions.

x: number

The unit's x position.

y: number

The unit's y position.