Class PlanetState
- Namespace
- Helldivers2API.Data.Models
- Assembly
- Helldivers2API.dll
Planet state consolidates useful information about a planet. If a planet is defending vs attacking, it changes how we should present information.
public class PlanetState
- Inheritance
-
PlanetState
- Inherited Members
Constructors
PlanetState(IPlanet)
public PlanetState(IPlanet planet)
Parameters
planetIPlanet
Properties
Progress
Progress 0.0 - 1.0
Progress is dependent on the state.
If the planet is being liberated, then progress is at 100% when the health is at 0.
If the planet is being defending, the progress is product of remaining time.
public double Progress { get; }
Property Value
RemainingHealth
Get remaining health (0.0 to 1.0)
public float RemainingHealth { get; }
Property Value
State
If the planet is being liberated or defended
public PlanetStateCL State { get; }