mirror of
https://github.com/sampletext32/ParkanPlayground.git
synced 2026-08-15 02:57:49 +04:00
31 lines
789 B
C#
31 lines
789 B
C#
namespace CpDatLib;
|
|
|
|
public record CpDatEntry(
|
|
string ArchiveFile,
|
|
string ArchiveEntryName,
|
|
int Magic1,
|
|
int AttachIndex,
|
|
string Description,
|
|
DatEntryType Type,
|
|
int ChildCount, // игра не хранит это число в объекте, но оно есть в файле
|
|
List<CpDatEntry> Children
|
|
);
|
|
|
|
// 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,
|
|
} |