0
mirror of https://github.com/sampletext32/ParkanPlayground.git synced 2025-10-13 23:10:23 +03:00
Files
ParkanPlayground/CpDatLib/CpDatEntry.cs

31 lines
784 B
C#
Raw Normal View History

2025-09-04 02:45:26 +03:00
namespace CpDatLib;
public record CpDatEntry(
string ArchiveFile,
string ArchiveEntryName,
int Magic1,
int Magic2,
string Description,
2025-10-05 18:17:18 +03:00
DatEntryType Type,
2025-09-04 02:45:26 +03:00
int ChildCount, // игра не хранит это число в объекте, но оно есть в файле
List<CpDatEntry> Children
2025-10-05 18:17:18 +03:00
);
// Magic3 seems to be a type
// 0 - chassis
// 1 - turret (у зданий почему-то дефлектор тоже 1), может быть потому, что дефлектор вращается так же как башня у юнитов
// 2 - armour
// 3 - part
// 4 - cannon
// 5 - ammo
public enum DatEntryType
{
Unspecified = -1,
Chassis = 0,
Turret = 1,
Armour = 2,
Part = 3,
Cannon = 4,
Ammo = 5,
}