Skip to content

Commit 5bbab68

Browse files
committed
Add checkpoint count
1 parent e814990 commit 5bbab68

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

Src/GBX.NET/Engines/Game/CGameCtnGhost.chunkl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,7 @@ CGameCtnGhost 0x03092000 // A ghost.
107107

108108
0x019 (base: 0x011) [TMF] // validation TMUF
109109

110-
0x01A (skippable) [MP3, TMT, MP4, TM2020]
111-
int
110+
0x01A (skippable) [MP3, TMT, MP4, TM2020] // checkpoint count
112111

113112
0x01B (skippable, ignore) [MP3, TMT, MP4, TM2020] // race result
114113

Src/GBX.NET/Engines/Game/CGameCtnGhost.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,14 @@ public override void ReadWrite(CGameCtnGhost n, GbxReaderWriter rw)
183183
}
184184
}
185185

186+
public partial class Chunk0309201A
187+
{
188+
public override void ReadWrite(CGameCtnGhost n, GbxReaderWriter rw)
189+
{
190+
rw.Int32(n.checkpoints?.Length ?? 0);
191+
}
192+
}
193+
186194
public partial class Chunk03092025 : IVersionable
187195
{
188196
public int Version { get; set; }

0 commit comments

Comments
 (0)