Skip to content

Commit

Permalink
add SpaceStation to ArrowHead API
Browse files Browse the repository at this point in the history
see #118
  • Loading branch information
dealloc committed Nov 14, 2024
1 parent 41cb478 commit e3768ac
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
16 changes: 16 additions & 0 deletions src/Helldivers-2-Models/ArrowHead/Status/SpaceStation.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
namespace Helldivers.Models.ArrowHead.Status;

/// <summary>
/// Represents one of the space stations as passed from the ArrowHead API.
/// </summary>
/// <param name="Id32"></param>
/// <param name="PlanetIndex"></param>
/// <param name="CurrentElectionEndWarTime"></param>
/// <param name="Flags"></param>
public sealed record SpaceStation(
long Id32,
int PlanetIndex,
// TODO PlanetActiveEffects
ulong CurrentElectionEndWarTime,
int Flags
);
4 changes: 3 additions & 1 deletion src/Helldivers-2-Models/ArrowHead/WarStatus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ namespace Helldivers.Models.ArrowHead;
/// <param name="Campaigns">A list of ongoing campaigns in the galactic war.</param>
/// <param name="JointOperations">A list of <see cref="JointOperation" />s.</param>
/// <param name="PlanetEvents">A list of ongoing <see cref="PlanetEvent" />s.</param>
/// <param name="SpaceStations">A list of <see cref="SpaceStation" />s.</param>
public sealed record WarStatus(
int WarId,
long Time,
Expand All @@ -24,9 +25,10 @@ public sealed record WarStatus(
List<Campaign> Campaigns,
// TODO CommunityTargets
List<JointOperation> JointOperations,
List<PlanetEvent> PlanetEvents
List<PlanetEvent> PlanetEvents,
// TODO PlanetActiveEffects
// TODO activeElectionPolicyEffects
// TODO globalEvents
// TODO superEarthWarResults
List<SpaceStation> SpaceStations
);

0 comments on commit e3768ac

Please sign in to comment.