mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 23:07:43 +00:00
Merge branch 'master' of https://github.com/AxioDL/urde
This commit is contained in:
@@ -9,6 +9,7 @@ make_dnalist(liblist
|
||||
CINF
|
||||
CSKR
|
||||
EVNT
|
||||
PATH
|
||||
CMDLMaterials
|
||||
MREA
|
||||
DeafBabe
|
||||
|
||||
0
DataSpec/DNAMP1/PATH.cpp
Normal file
0
DataSpec/DNAMP1/PATH.cpp
Normal file
73
DataSpec/DNAMP1/PATH.hpp
Normal file
73
DataSpec/DNAMP1/PATH.hpp
Normal file
@@ -0,0 +1,73 @@
|
||||
#ifndef __DNACOMMON_PATH_HPP__
|
||||
#define __DNACOMMON_PATH_HPP__
|
||||
|
||||
#include "../DNACommon/DNACommon.hpp"
|
||||
|
||||
namespace DataSpec
|
||||
{
|
||||
struct PATH : BigDNA
|
||||
{
|
||||
DECL_DNA
|
||||
Value<atUint32> version;
|
||||
struct Vertex : BigDNA
|
||||
{
|
||||
DECL_DNA
|
||||
Value<atVec3f> position;
|
||||
Value<atVec3f> normal;
|
||||
};
|
||||
Value<atUint32> vertexCount;
|
||||
Vector<Vertex, DNA_COUNT(vertexCount)> nodes;
|
||||
struct Edge : BigDNA
|
||||
{
|
||||
DECL_DNA
|
||||
Value<atUint32> polyA;
|
||||
Value<atUint32> polyB;
|
||||
Value<float> width1;
|
||||
Value<float> width2;
|
||||
};
|
||||
|
||||
Value<atUint32> edgeCount;
|
||||
Vector<Edge, DNA_COUNT(edgeCount)> edges;
|
||||
|
||||
struct Polygon : BigDNA
|
||||
{
|
||||
DECL_DNA
|
||||
Value<atUint32> vertCount;
|
||||
Value<atUint32> vertStart;
|
||||
Value<atUint32> edgeCount;
|
||||
Value<atUint32> edgeStart;
|
||||
Value<atUint32> flags;
|
||||
Value<float> area;
|
||||
Value<atVec3f> normal;
|
||||
Value<atUint32> selfIdx1;
|
||||
Value<atVec3f> center;
|
||||
Value<atVec3f> aabb[2];
|
||||
Value<atUint32> selfIdx2;
|
||||
};
|
||||
|
||||
Value<atUint32> polyCount;
|
||||
Vector<Polygon, DNA_COUNT(polyCount)> polygons;
|
||||
|
||||
Vector<atUint32, DNA_COUNT((((polyCount * (polyCount - 1)) / 2) + 31) / 32)> bitmap1;
|
||||
Vector<atUint32, DNA_COUNT(bitmap1.size())> bitmap2;
|
||||
Vector<atUint32, DNA_COUNT(((((polyCount * polyCount) + 31) / 32) - bitmap1.size()) * 2)> bitmap3;
|
||||
|
||||
Value<atUint32> unkIntCount;
|
||||
Vector<atUint32, DNA_COUNT(unkIntCount)> unkInts;
|
||||
|
||||
struct UnknownStruct : BigDNA
|
||||
{
|
||||
DECL_DNA
|
||||
Value<atUint32> unk1;
|
||||
Value<atVec3f> unk2[3];
|
||||
Value<atUint32> unk3[8]; // Usually 0xFF
|
||||
Value<atUint32> unk4;
|
||||
Value<atUint32> unk5;
|
||||
};
|
||||
|
||||
Value<atUint32> unkStructCount;
|
||||
Vector<UnknownStruct, DNA_COUNT(unkStructCount)> unkStructs;
|
||||
};
|
||||
}
|
||||
|
||||
#endif // __DNACOMMON_PATH_HPP__
|
||||
Reference in New Issue
Block a user