Skip to content

Commit 1cff46f

Browse files
committed
compile V2 HDML
see #118
1 parent 4860ffa commit 1cff46f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/Helldivers-2-Core/Mapping/V2/SpaceStationMapper.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using Helldivers.Core.Hdml;
12
using Helldivers.Models.V1;
23
using Helldivers.Models.V2;
34
using Helldivers.Models.V2.SpaceStations;
@@ -7,7 +8,7 @@ namespace Helldivers.Core.Mapping.V2;
78
/// <summary>
89
/// Handles mapping for <see cref="SpaceStation" />.
910
/// </summary>
10-
public sealed class SpaceStationMapper
11+
public sealed class SpaceStationMapper(HdmlParser parser)
1112
{
1213
/// <summary>
1314
/// Maps all space stations in the <see cref="MappingContext" />.
@@ -58,7 +59,7 @@ private TacticalAction MapTacticalAction(MappingContext context, Helldivers.Mode
5859
MediaId32: raw.MediaId32,
5960
Name: raw.Name,
6061
Description: raw.Description,
61-
StrategicDescription: raw.StrategicDescription,
62+
StrategicDescription: parser.Compile(raw.StrategicDescription),
6263
Status: raw.Status,
6364
StatusExpire: context.RelativeGameStart.AddSeconds(raw.StatusExpireAtWarTimeSeconds),
6465
Costs: raw.Cost.Select(MapCost).ToList(),

0 commit comments

Comments
 (0)