Research tree parsing and view

This commit is contained in:
bird_egop
2026-02-15 23:44:20 +03:00
parent a8536f938d
commit 8091a727ba
17 changed files with 537 additions and 333 deletions
+3 -5
View File
@@ -25,9 +25,8 @@ public static class Msh0D
var elements = elementBytes.Select(x => new Msh0DElement()
{
Flags = BinaryPrimitives.ReadUInt16LittleEndian(x.AsSpan(0)),
Magic04 = x.AsSpan(4)[0],
Magic05 = x.AsSpan(5)[0],
Flags = BinaryPrimitives.ReadUInt32LittleEndian(x.AsSpan(0)),
TriangleCount = BinaryPrimitives.ReadUInt16LittleEndian(x.AsSpan(4)),
Magic06 = BinaryPrimitives.ReadUInt16LittleEndian(x.AsSpan(6)),
CountOf06 = BinaryPrimitives.ReadUInt16LittleEndian(x.AsSpan(8)),
IndexInto06 = BinaryPrimitives.ReadInt32LittleEndian(x.AsSpan(0xA)),
@@ -44,8 +43,7 @@ public static class Msh0D
// Magic04 и Magic06 обрабатываются вместе
public byte Magic04 { get; set; }
public byte Magic05 { get; set; }
public ushort TriangleCount { get; set; }
public ushort Magic06 { get; set; }
public ushort CountOf06 { get; set; }
public int IndexInto06 { get; set; }