metaforce/DataSpec/DNAMP3/HINT.hpp

43 lines
1.0 KiB
C++
Raw Normal View History

2018-10-07 03:42:33 +00:00
#pragma once
2016-09-08 02:01:29 +00:00
2018-06-29 20:21:36 +00:00
#include "DataSpec/DNACommon/DNACommon.hpp"
2016-09-08 02:01:29 +00:00
#include "PAK.hpp"
2018-12-08 05:30:43 +00:00
namespace DataSpec::DNAMP3 {
struct HINT : BigDNA {
AT_DECL_DNA_YAML
Value<atUint32> magic;
Value<atUint32> version;
2016-09-08 02:01:29 +00:00
2018-12-08 05:30:43 +00:00
struct Hint : BigDNA {
AT_DECL_DNA_YAML
String<-1> name;
Value<float> unknown1;
Value<float> fadeInTime;
UniqueID64 stringID;
Value<atUint32> unknown2;
struct Location : BigDNA {
AT_DECL_DNA_YAML
UniqueID64 worldAssetID;
UniqueID64 areaAssetID;
Value<atUint32> areaID;
UniqueID64 stringID;
Value<atUint32> unknown[3];
2016-09-08 02:01:29 +00:00
};
2018-12-08 05:30:43 +00:00
Value<atUint32> locationCount;
Vector<Location, AT_DNA_COUNT(locationCount)> locations;
};
Value<atUint32> hintCount;
Vector<Hint, AT_DNA_COUNT(hintCount)> hints;
static bool Extract(PAKEntryReadStream& rs, const hecl::ProjectPath& outPath) {
HINT hint;
hint.read(rs);
athena::io::FileWriter writer(outPath.getAbsolutePath());
athena::io::ToYAMLStream(hint, writer);
return true;
}
2016-09-08 02:01:29 +00:00
};
2018-12-08 05:30:43 +00:00
} // namespace DataSpec::DNAMP3