Table of Contents

Class PlanetExtensions

Namespace
Helldivers2API.Data.Models.Extensions
Assembly
Helldivers2API.dll

Extensions for pulling data from the web api

public static class PlanetExtensions
Inheritance
PlanetExtensions
Inherited Members

Methods

Campaigns(IPlanet)

List of active campaigns on this planet.

public static Campaign?[] Campaigns(this IPlanet planet)

Parameters

planet IPlanet

Returns

Campaign[]

Conflicts(IPlanet)

List of conflicts this planet participates in.

public static IPlanet?[] Conflicts(this IPlanet planet)

Parameters

planet IPlanet

Returns

IPlanet[]

Remarks

Previously thought the source/target in the raw data implied which were attacking vs defending. This is not the case. The source always appears to be friendly planets.

GetAssignments(IPlanet)

Gets associated assignments. The assignment is usually the MAJOR ORDER but check IsMajorOrder on the Assignment. The Assignment Tasks always appear to include 1 in the list.. will only use last id for now.

public static Assignment?[] GetAssignments(this IPlanet planet)

Parameters

planet IPlanet

Returns

Assignment[]

GlobalEvents(IPlanet)

List of active global events associated with this planet.

public static GlobalEvent?[] GlobalEvents(this IPlanet planet)

Parameters

planet IPlanet

Returns

GlobalEvent[]

Health(IPlanet)

The current health of this planet.

public static int? Health(this IPlanet planet)

Parameters

planet IPlanet

Returns

int?

HomeWorldFor(IPlanet)

List of factions associated to this planet as their homeworld.

public static IFaction?[] HomeWorldFor(this IPlanet planet)

Parameters

planet IPlanet

Returns

IFaction[]

InitialOwner(IPlanet)

The faction that origionally controlled this planet.

public static IFaction? InitialOwner(this IPlanet planet)

Parameters

planet IPlanet

Returns

IFaction

JointOperations(IPlanet)

List of joint operations associated with this planet.

public static JointOperation?[] JointOperations(this IPlanet planet)

Parameters

planet IPlanet

Returns

JointOperation[]

MaxHealth(IPlanet)

Max health of the planet.

public static int? MaxHealth(this IPlanet planet)

Parameters

planet IPlanet

Returns

int?

Owner(IPlanet)

The faction that currently owns this planet.

public static IFaction? Owner(this IPlanet planet)

Parameters

planet IPlanet

Returns

IFaction

PlanetEvents(IPlanet)

List of active events associated with this planet.

public static PlanetEvent?[] PlanetEvents(this IPlanet planet)

Parameters

planet IPlanet

Returns

PlanetEvent[]

PlanetState(IPlanet)

public static PlanetState PlanetState(this IPlanet planet)

Parameters

planet IPlanet

Returns

PlanetState

PlayerCount(IPlanet)

The count of players on this planet.

public static int? PlayerCount(this IPlanet planet)

Parameters

planet IPlanet

Returns

int?

Position(IPlanet)

The location this planet exists on the galatic map.

public static Position? Position(this IPlanet planet)

Parameters

planet IPlanet

Returns

Position

RegenPerSecond(IPlanet)

The current regen per second of this planet.

public static double? RegenPerSecond(this IPlanet planet)

Parameters

planet IPlanet

Returns

double?

Stats(IPlanet)

Stats for this planet

public static PlanetStats? Stats(this IPlanet planet)

Parameters

planet IPlanet

Returns

PlanetStats

SupplyLinesFrom(IPlanet)

List of planets with supply lines to this planet.

public static IPlanet?[] SupplyLinesFrom(this IPlanet planet)

Parameters

planet IPlanet

Returns

IPlanet[]

SupplyLinesTo(IPlanet)

List of planets with supply lines from this planet.

public static IPlanet?[] SupplyLinesTo(this IPlanet planet)

Parameters

planet IPlanet

Returns

IPlanet[]