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

@@ -6,23 +6,23 @@
namespace DataSpec::DNAMP3
{
struct HINT : BigYAML
struct HINT : BigDNA
{
DECL_YAML
AT_DECL_DNA_YAML
Value<atUint32> magic;
Value<atUint32> version;
struct Hint : BigYAML
struct Hint : BigDNA
{
DECL_YAML
AT_DECL_DNA_YAML
String<-1> name;
Value<float> unknown1;
Value<float> fadeInTime;
UniqueID64 stringID;
Value<atUint32> unknown2;
struct Location : BigYAML
struct Location : BigDNA
{
DECL_YAML
AT_DECL_DNA_YAML
UniqueID64 worldAssetID;
UniqueID64 areaAssetID;
Value<atUint32> areaID;
@@ -41,7 +41,7 @@ struct HINT : BigYAML
HINT hint;
hint.read(rs);
athena::io::FileWriter writer(outPath.getAbsolutePath());
hint.toYAMLStream(writer);
athena::io::ToYAMLStream(hint, writer);
return true;
}
};