Add PTLA DNA

This commit is contained in:
Phillip Stephens 2016-02-21 14:05:11 -08:00
parent 7ec23b50ba
commit 513465e9f2
2 changed files with 73 additions and 0 deletions

View File

@ -6,6 +6,7 @@ make_dnalist(liblist
CINF CINF
CSKR CSKR
MREA MREA
PTLA
DeafBabe) DeafBabe)
add_library(DNAMP2 add_library(DNAMP2
DNAMP2.hpp DNAMP2.cpp DNAMP2.hpp DNAMP2.cpp

72
DataSpec/DNAMP2/PTLA.hpp Normal file
View File

@ -0,0 +1,72 @@
#ifndef PTLA_HPP
#define PTLA_HPP
#include "../DNACommon/DNACommon.hpp"
namespace DataSpec
{
namespace DNAMP2
{
struct PTLA : BigDNA
{
DECL_DNA
Value<atUint32> magic;
Value<atUint32> version;
struct UnknownStruct1 : BigDNA
{
DECL_DNA
Value<atUint32> count;
struct Entry : BigDNA
{
DECL_DNA
Value<float> unknown1;
Value<float> unknown2;
Value<float> unknown3;
Value<float> unknown4;
Value<atUint16> unknown5;
Value<atUint16> unknown6;
};
Vector<Entry, DNA_COUNT(count)> entries;
Value<atVec3f> unknown[2];
};
Value<atUint32> count1;
Vector<UnknownStruct1, DNA_COUNT(count1)> entries1;
struct UnknownStruct2 : BigDNA
{
DECL_DNA
Value<atUint32> count;
struct Entry : BigDNA
{
DECL_DNA
Value<float> unknown1;
Value<float> unknown2;
Value<float> unknown3;
Value<float> unknown4;
};
Vector<Entry, DNA_COUNT(count)> entries;
Value<atUint16> unknown;
};
Value<atUint32> count2;
Vector<UnknownStruct2, DNA_COUNT(count2)> entries2;
Value<atUint32> shortCount1;
Vector<atUint16, DNA_COUNT(shortCount1)> shorts1;
Value<atUint32> shortCount2;
Vector<atUint16, DNA_COUNT(shortCount2)> shorts2;
struct UnknownStruct3 : BigDNA
{
DECL_DNA
Value<atVec3f> unknown1[2];
Value<atUint16> unknown2;
Value<atUint16> unknown3;
Value<atUint16> unknown4;
};
Value<atUint32> count3;
Vector<UnknownStruct3, DNA_COUNT(count3)> entries3;
};
}
}
#endif // PTLA_HPP