2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 08:27:42 +00:00

Massive template-based DNA refactor

This commit is contained in:
Jack Andersen
2018-02-21 21:24:51 -10:00
parent b405f33ded
commit e4ff23c279
265 changed files with 3993 additions and 5773 deletions

View File

@@ -8,9 +8,9 @@
namespace DataSpec::DNAMP1
{
struct MLVL : BigYAML
struct MLVL : BigDNA
{
DECL_YAML
AT_DECL_DNA_YAML
Value<atUint32> magic;
Value<atUint32> version;
UniqueID32 worldNameId;
@@ -18,9 +18,9 @@ struct MLVL : BigYAML
UniqueID32 worldSkyboxId;
Value<atUint32> memRelayLinkCount;
struct MemRelayLink : BigYAML
struct MemRelayLink : BigDNA
{
DECL_YAML
AT_DECL_DNA_YAML
Value<atUint32> memRelayId;
Value<atUint32> targetId;
Value<atUint16> msg;
@@ -30,9 +30,9 @@ struct MLVL : BigYAML
Value<atUint32> areaCount;
Value<atUint32> unknown1;
struct Area : BigYAML
struct Area : BigDNA
{
DECL_YAML
AT_DECL_DNA_YAML
UniqueID32 areaNameId;
Value<atVec4f> transformMtx[3];
Value<atVec3f> aabb[2];
@@ -44,9 +44,9 @@ struct MLVL : BigYAML
Value<atUint32> padding;
Value<atUint32> depCount;
struct Dependency : BigYAML
struct Dependency : BigDNA
{
DECL_YAML
AT_DECL_DNA_YAML
UniqueID32 id;
DNAFourCC type;
@@ -60,13 +60,13 @@ struct MLVL : BigYAML
Vector<atUint32, DNA_COUNT(depLayerCount)> depLayers;
Value<atUint32> dockCount;
struct Dock : BigYAML
struct Dock : BigDNA
{
DECL_YAML
AT_DECL_DNA_YAML
Value<atUint32> endpointCount;
struct Endpoint : BigYAML
struct Endpoint : BigDNA
{
DECL_YAML
AT_DECL_DNA_YAML
Value<atUint32> areaIdx;
Value<atUint32> dockIdx;
};
@@ -96,9 +96,9 @@ struct MLVL : BigYAML
Value<atUint32> unknown3;
Value<atUint32> audioGroupCount;
struct AudioGroup : BigYAML
struct AudioGroup : BigDNA
{
DECL_YAML
AT_DECL_DNA_YAML
Value<atUint32> groupId;
UniqueID32 agscId;
};
@@ -106,9 +106,9 @@ struct MLVL : BigYAML
String<-1> unkString;
Value<atUint32> layerFlagCount;
struct LayerFlags : BigYAML
struct LayerFlags : BigDNA
{
DECL_YAML
AT_DECL_DNA_YAML
Value<atUint32> layerCount;
Value<atUint64> flags;
};