2016-09-08 02:01:29 +00:00
|
|
|
#ifndef _DNAMP3_HINT_HPP_
|
|
|
|
#define _DNAMP3_HINT_HPP_
|
|
|
|
|
|
|
|
#include "../DNACommon/DNACommon.hpp"
|
|
|
|
#include "PAK.hpp"
|
|
|
|
|
2017-12-29 08:08:12 +00:00
|
|
|
namespace DataSpec::DNAMP3
|
2016-09-08 02:01:29 +00:00
|
|
|
{
|
2018-02-22 07:24:51 +00:00
|
|
|
struct HINT : BigDNA
|
2016-09-08 02:01:29 +00:00
|
|
|
{
|
2018-02-22 07:24:51 +00:00
|
|
|
AT_DECL_DNA_YAML
|
2016-09-08 02:01:29 +00:00
|
|
|
Value<atUint32> magic;
|
|
|
|
Value<atUint32> version;
|
|
|
|
|
2018-02-22 07:24:51 +00:00
|
|
|
struct Hint : BigDNA
|
2016-09-08 02:01:29 +00:00
|
|
|
{
|
2018-02-22 07:24:51 +00:00
|
|
|
AT_DECL_DNA_YAML
|
2016-09-08 02:01:29 +00:00
|
|
|
String<-1> name;
|
|
|
|
Value<float> unknown1;
|
|
|
|
Value<float> fadeInTime;
|
|
|
|
UniqueID64 stringID;
|
|
|
|
Value<atUint32> unknown2;
|
2018-02-22 07:24:51 +00:00
|
|
|
struct Location : BigDNA
|
2016-09-08 02:01:29 +00:00
|
|
|
{
|
2018-02-22 07:24:51 +00:00
|
|
|
AT_DECL_DNA_YAML
|
2016-09-08 02:01:29 +00:00
|
|
|
UniqueID64 worldAssetID;
|
|
|
|
UniqueID64 areaAssetID;
|
|
|
|
Value<atUint32> areaID;
|
|
|
|
UniqueID64 stringID;
|
|
|
|
Value<atUint32> unknown[3];
|
|
|
|
};
|
|
|
|
|
|
|
|
Value<atUint32> locationCount;
|
|
|
|
Vector<Location, DNA_COUNT(locationCount)> locations;
|
|
|
|
};
|
|
|
|
Value<atUint32> hintCount;
|
|
|
|
Vector<Hint, DNA_COUNT(hintCount)> hints;
|
|
|
|
|
|
|
|
static bool Extract(PAKEntryReadStream& rs, const hecl::ProjectPath& outPath)
|
|
|
|
{
|
|
|
|
HINT hint;
|
|
|
|
hint.read(rs);
|
|
|
|
athena::io::FileWriter writer(outPath.getAbsolutePath());
|
2018-02-22 07:24:51 +00:00
|
|
|
athena::io::ToYAMLStream(hint, writer);
|
2016-09-08 02:01:29 +00:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif // _DNAMP1_HINT_HPP_
|