athena/atdna/test.hpp

37 lines
718 B
C++
Raw Normal View History

2015-06-16 02:29:53 +00:00
#include <Athena/DNA.hpp>
2015-06-15 02:49:02 +00:00
using namespace Athena;
2015-06-17 00:25:48 +00:00
struct ANCSSubFile : public io::DNA<BigEndian>
{
DECL_DNA
Value<atUint32> sub1;
Value<atUint32> sub2;
};
2015-06-16 02:29:53 +00:00
struct ANCSFile : public io::DNA<BigEndian>
2015-06-15 02:49:02 +00:00
{
2015-06-17 00:25:48 +00:00
DECL_DNA
Value<bool> varBool;
2015-06-16 02:29:53 +00:00
Value<atUint32> var32;
2015-06-16 07:11:56 +00:00
Value<atUint16> var16;
2015-06-17 00:25:48 +00:00
Value<atVec3f> vec3;
Value<atVec4f> vec4;
struct ANCSNestedSubFile : public io::DNA<BigEndian>
{
DECL_DNA
Value<atUint32> nestSub1;
Value<atUint32> nestSub2;
} nestedSubFile;
ANCSSubFile subFile;
Value<atUint32> arrCount;
Vector<atUint32, sizeof(arrCount)> array;
Value<atUint32> arrCount2;
Vector<ANCSSubFile, sizeof(arrCount2)> array2;
2015-06-15 02:49:02 +00:00
};
2015-06-16 07:11:56 +00:00