#ifndef _DNAMP1_HINT_HPP_ #define _DNAMP1_HINT_HPP_ #include "../DNACommon/DNACommon.hpp" #include "../DNACommon/PAK.hpp" namespace DataSpec { namespace DNAMP1 { struct HINT : BigYAML { DECL_YAML Value magic; Value version; struct Hint : BigYAML { DECL_YAML String<-1> name; Value immediateTime; Value normalTime; UniqueID32 stringID; Value textPageCount; struct Location : BigYAML { DECL_YAML UniqueID32 worldAssetID; UniqueID32 areaAssetID; Value areaID; UniqueID32 stringID; }; Value locationCount; Vector locations; }; Value hintCount; Vector hints; static bool Extract(PAKEntryReadStream& rs, const hecl::ProjectPath& outPath) { HINT hint; hint.read(rs); athena::io::FileWriter writer(outPath.getAbsolutePath()); hint.toYAMLStream(writer); return true; } static bool Cook(const hecl::ProjectPath& inPath, const hecl::ProjectPath& outPath) { HINT hint; athena::io::FileReader reader(inPath.getAbsolutePath()); hint.fromYAMLStream(reader); athena::io::FileWriter ws(outPath.getAbsolutePath()); hint.write(ws); return true; } }; } } #endif // _DNAMP1_HINT_HPP_