Skip to content

Commit 6cc23f6

Browse files
committed
map settinghash
1 parent c2b7b3e commit 6cc23f6

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

src/Helldivers-2-Core/Mapping/V1/PlanetMapper.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ private Region MapToV1(Models.ArrowHead.Info.PlanetRegion region, Models.ArrowHe
103103

104104
return new Region(
105105
Id: region.RegionIndex,
106+
Hash: region.SettingsHash,
106107
Name: planetRegion?.Name,
107108
Description: planetRegion?.Description,
108109
Health: status?.Health,

src/Helldivers-2-Models/V1/Planets/Region.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
/// Note that some properties may be unavailable when the region is inactive.
1010
/// </summary>
1111
/// <param name="Id">The identifier of this region.</param>
12+
/// <param name="Hash">The underlying hash identifier of ArrowHead.</param>
1213
/// <param name="Name">The name of the region.</param>
1314
/// <param name="Description">A long-form description of the region.</param>
1415
/// <param name="Health">The current health of the region.</param>
@@ -20,6 +21,7 @@
2021
/// <param name="Players">The amount of helldivers currently active in this region.</param>
2122
public record struct Region(
2223
int Id,
24+
ulong Hash,
2325
string? Name,
2426
string? Description,
2527
long? Health,

0 commit comments

Comments
 (0)