Table of Contents

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

planet IPlanet

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

double

RemainingHealth

Get remaining health (0.0 to 1.0)

public float RemainingHealth { get; }

Property Value

float

State

If the planet is being liberated or defended

public PlanetStateCL State { get; }

Property Value

PlanetStateCL