update docs on wea. correctly parse msh

This commit is contained in:
bird_egop
2025-09-03 01:30:54 +03:00
parent 055694a4b4
commit 7f0246f996
4 changed files with 30 additions and 88 deletions
+4 -2
View File
@@ -26,7 +26,8 @@ public static class Msh0D
var elements = elementBytes.Select(x => new Msh0DElement()
{
Flags = BinaryPrimitives.ReadUInt16LittleEndian(x.AsSpan(0)),
Magic04 = BinaryPrimitives.ReadUInt16LittleEndian(x.AsSpan(4)),
Magic04 = x.AsSpan(4)[0],
Magic05 = x.AsSpan(5)[0],
Magic06 = BinaryPrimitives.ReadUInt16LittleEndian(x.AsSpan(6)),
CountOf06 = BinaryPrimitives.ReadUInt16LittleEndian(x.AsSpan(8)),
IndexInto06 = BinaryPrimitives.ReadInt32LittleEndian(x.AsSpan(0xA)),
@@ -43,7 +44,8 @@ public static class Msh0D
// Magic04 и Magic06 обрабатываются вместе
public ushort Magic04 { get; set; }
public byte Magic04 { get; set; }
public byte Magic05 { get; set; }
public ushort Magic06 { get; set; }
public ushort CountOf06 { get; set; }
public int IndexInto06 { get; set; }