-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP Space station raw endpoint mapping
- Loading branch information
1 parent
fb11279
commit 7bd66f0
Showing
12 changed files
with
140 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using Helldivers.Models.ArrowHead.SpaceStations; | ||
|
||
namespace Helldivers.Models.ArrowHead; | ||
|
||
/// <summary> | ||
/// Represents an assignment given from Super Earth to the Helldivers. | ||
/// </summary> | ||
/// <param name="Id32">The unique identifier of the station.</param> | ||
/// <param name="PlanetIndex">The id of the planet it's currently orbiting</param> | ||
/// <param name="LastElectionId">The id of the previous planet election.</param> | ||
/// <param name="CurrentElectionId">The id of the current planet election.</param> | ||
/// <param name="NextElectionId">The id of the next planet election.</param> | ||
/// <param name="CurrentElectionEndWarTime">When the election for the next planet will end (in seconds relative to game start).</param> | ||
/// <param name="Flags">A set of flags, purpose currently unknown.</param> | ||
/// <param name="TacticalActions">The list of actions the space station crew can perform.</param> | ||
public sealed record SpaceStation( | ||
long Id32, | ||
int PlanetIndex, | ||
string LastElectionId, | ||
string CurrentElectionId, | ||
string NextElectionId, | ||
ulong CurrentElectionEndWarTime, | ||
int Flags, | ||
List<TacticalAction> TacticalActions | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
namespace Helldivers.Models.ArrowHead.SpaceStations; | ||
|
||
/// <summary> | ||
/// Represents the "Cost" of a tactical action | ||
/// </summary> | ||
/// <param name="Id"></param> | ||
/// <param name="ItemMixId"></param> | ||
/// <param name="TargetValue"></param> | ||
/// <param name="CurrentValue"></param> | ||
/// <param name="DeltaPerSecond"></param> | ||
/// <param name="MaxDonationAmmount"></param> | ||
/// <param name="MaxDonationPeriodSeconds"></param> | ||
public sealed record Cost( | ||
string Id, | ||
long ItemMixId, | ||
int TargetValue, | ||
int CurrentValue, | ||
int DeltaPerSecond, | ||
int MaxDonationAmmount, | ||
int MaxDonationPeriodSeconds | ||
); |
27 changes: 27 additions & 0 deletions
27
src/Helldivers-2-Models/ArrowHead/SpaceStations/TacticalAction.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
namespace Helldivers.Models.ArrowHead.SpaceStations; | ||
|
||
/// <summary> | ||
/// Represents information of a space station from the 'SpaceStation' endpoint returned by ArrowHead's API. | ||
/// </summary> | ||
/// <param name="Id32"></param> | ||
/// <param name="MediaId32"></param> | ||
/// <param name="Name"></param> | ||
/// <param name="Description"></param> | ||
/// <param name="StrategicDescription"></param> | ||
/// <param name="Status"></param> | ||
/// <param name="StatusExpireAtWarTimeSeconds"></param> | ||
/// <param name="Cost"></param> | ||
/// <param name="EffectIds"></param> | ||
/// <param name="ActiveEffectIds"></param> | ||
public sealed record TacticalAction( | ||
long Id32, | ||
long MediaId32, | ||
string Name, | ||
string Description, | ||
string StrategicDescription, | ||
int Status, | ||
int StatusExpireAtWarTimeSeconds, | ||
List<Cost> Cost, | ||
List<int> EffectIds, | ||
List<int> ActiveEffectIds | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters