The current state of the health

Variables

@:value(cast "fromLosing")@:impl@:enuminlineread onlyFromLosing:HealthIconState = "fromLosing"

Indicates that the health icon is transitioning between losing and idle. The next animation will play once the current animation finishes.

@:value(cast "fromWinning")@:impl@:enuminlineread onlyFromWinning:HealthIconState = "fromWinning"

Indicates that the health icon is transitioning between winning and idle. The next animation will play once the current animation finishes.

@:value(cast "idle")@:impl@:enuminlineread onlyIdle:HealthIconState = "idle"

Indicates the health icon is in the default animation. Plays as long as health is between 20% and 80%.

@:value(cast "losing")@:impl@:enuminlineread onlyLosing:HealthIconState = "losing"

Indicates the health icon is playing the Losing animation. Plays as long as health is below 20%.

@:value(cast "toLosing")@:impl@:enuminlineread onlyToLosing:HealthIconState = "toLosing"

Indicates that the health icon is transitioning between idle and losing. The next animation will play once the current animation finishes.

@:value(cast "toWinning")@:impl@:enuminlineread onlyToWinning:HealthIconState = "toWinning"

Indicates that the health icon is transitioning between idle and winning. The next animation will play once the current animation finishes.

@:value(cast "winning")@:impl@:enuminlineread onlyWinning:HealthIconState = "winning"

Indicates the health icon is playing the Winning animation. Plays as long as health is above 80%.