mirror of
https://github.com/sampletext32/ParkanPlayground.git
synced 2025-06-18 15:49:47 +03:00
unknown fixes
This commit is contained in:
@ -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; }
|
||||
|
3
MissionTmaLib/Parsing/MissionTma.cs
Normal file
3
MissionTmaLib/Parsing/MissionTma.cs
Normal file
@ -0,0 +1,3 @@
|
||||
namespace MissionTmaLib.Parsing;
|
||||
|
||||
public record MissionTma(ArealsFileData ArealData, ClansFileData ClansData, GameObjectsFileData GameObjectsData);
|
@ -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);
|
||||
}
|
Reference in New Issue
Block a user