#ifndef __DNAMP1_MAPA_HPP__ #define __DNAMP1_MAPA_HPP__ #include #include "../DNACommon/DNACommon.hpp" namespace Retro { namespace DNAMP1 { struct MAPA : BigDNA { DECL_DNA Value magic; Value version; Value unknown1; Value unknown2; Value aabbMin; Value aabbMax; Value mappableObjectCount; Value vertexCount; Value surfaceCount; struct MappableObject : BigDNA { DECL_DNA Value type; Value unknown1; Value unknown2; Value id; Seek seek1; Value transform1; Value transform2; Value transform3; Seek seek2; }; Vector mappableObjects; Vector vertices; struct SurfaceHeader : BigDNA { DECL_DNA Value normal; Value center; Value start; Value end; }; Vector surfaceHeaders; struct Surface : BigDNA { DECL_DNA Value primitiveCount; struct Primitive : BigDNA { DECL_DNA Value type; Value indexCount; Vector indices; Align<4> align; }; Vector primitives; Value borderCount; struct Border : BigDNA { DECL_DNA Value indexCount; Vector indices; Align<4> align; }; Vector borders; }; Vector surfaces; }; } } #endif