mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 05:07:43 +00:00
initial MLVL and STRG trilogy integration
This commit is contained in:
82
DataSpec/DNAMP3/MLVL.hpp
Normal file
82
DataSpec/DNAMP3/MLVL.hpp
Normal file
@@ -0,0 +1,82 @@
|
||||
#ifndef __DNAMP3_MLVL_HPP__
|
||||
#define __DNAMP3_MLVL_HPP__
|
||||
|
||||
#include "../DNACommon/DNACommon.hpp"
|
||||
|
||||
namespace Retro
|
||||
{
|
||||
namespace DNAMP3
|
||||
{
|
||||
|
||||
struct MLVL : BigDNA
|
||||
{
|
||||
DECL_DNA
|
||||
Value<atUint32> magic;
|
||||
Value<atUint32> version;
|
||||
UniqueID64 worldNameId;
|
||||
Value<atUint32> unk;
|
||||
UniqueID64 saveWorldId;
|
||||
UniqueID64 worldSkyboxId;
|
||||
|
||||
Value<atUint32> areaCount;
|
||||
struct Area : BigDNA
|
||||
{
|
||||
DECL_DNA
|
||||
UniqueID64 areaNameId;
|
||||
Value<atVec4f> transformMtx[3];
|
||||
Value<atVec3f> aabb[2];
|
||||
UniqueID64 areaMREAId;
|
||||
Value<atUint32> areaId;
|
||||
|
||||
Value<atUint32> attachedAreaCount;
|
||||
Vector<atUint16, DNA_COUNT(attachedAreaCount)> attachedAreas;
|
||||
|
||||
Value<atUint32> dockCount;
|
||||
struct Dock : BigDNA
|
||||
{
|
||||
DECL_DNA
|
||||
Value<atUint32> endpointCount;
|
||||
struct Endpoint : BigDNA
|
||||
{
|
||||
DECL_DNA
|
||||
Value<atUint32> areaIdx;
|
||||
Value<atUint32> dockIdx;
|
||||
};
|
||||
FourCC type;
|
||||
Vector<Endpoint, DNA_COUNT(endpointCount)> endpoints;
|
||||
|
||||
Value<atUint32> planeVertCount;
|
||||
Vector<atVec3f, DNA_COUNT(planeVertCount)> planeVerts;
|
||||
};
|
||||
Vector<Dock, DNA_COUNT(dockCount)> docks;
|
||||
|
||||
String<-1> internalAreaName;
|
||||
};
|
||||
|
||||
UniqueID64 worldMap;
|
||||
Value<atUint8> unknown2;
|
||||
Value<atUint32> unknown3;
|
||||
|
||||
Value<atUint32> layerFlagCount;
|
||||
struct LayerFlags : BigDNA
|
||||
{
|
||||
DECL_DNA
|
||||
Value<atUint32> layerCount;
|
||||
Value<atUint64> flags;
|
||||
};
|
||||
Vector<LayerFlags, DNA_COUNT(layerFlagCount)> layerFlags;
|
||||
|
||||
Value<atUint32> layerNameCount;
|
||||
Vector<String<-1>, DNA_COUNT(layerNameCount)> layerNames;
|
||||
|
||||
Value<atUint32> layerIDCount;
|
||||
Vector<UniqueID128, DNA_COUNT(layerIDCount)> layerIDs;
|
||||
|
||||
Value<atUint32> layerNameOffsetCount;
|
||||
Vector<atUint32, DNA_COUNT(layerNameOffsetCount)> layerNameOffsets;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif // __DNAMP3_MLVL_HPP__
|
||||
Reference in New Issue
Block a user