0
mirror of https://github.com/sampletext32/ParkanPlayground.git synced 2025-06-18 15:49:47 +03:00

unknown fixes

This commit is contained in:
bird_egop
2025-02-24 23:35:55 +03:00
parent c50512ea52
commit ba7c2afe2a
5 changed files with 22 additions and 7 deletions

View File

@ -22,7 +22,7 @@ public class GameObjectInfo
/// </remarks>
public int OwningClanIndex { get; set; }
public int UnknownInt3 { get; set; }
public int Order { get; set; }
public Vector3 Position { get; set; }
public Vector3 Rotation { get; set; }

View File

@ -0,0 +1,3 @@
namespace MissionTmaLib.Parsing;
public record MissionTma(ArealsFileData ArealData, ClansFileData ClansData, GameObjectsFileData GameObjectsData);

View File

@ -185,7 +185,11 @@ public class MissionTmaParser
if (3 < gameObjectsFeatureSet)
{
gameObjectInfo.UnknownInt3 = fileStream.ReadInt32LittleEndian();
gameObjectInfo.Order = fileStream.ReadInt32LittleEndian();
if (gameObjectInfo.Type == GameObjectType.Building)
{
gameObjectInfo.Order += int.MaxValue;
}
}
// читает 12 байт
@ -378,6 +382,4 @@ public class MissionTmaParser
lodeData
);
}
}
public record MissionTma(ArealsFileData ArealData, ClansFileData ClansData, GameObjectsFileData GameObjectsData);
}