mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 23:07:42 +00:00
Initial HINT support
This commit is contained in:
52
DataSpec/DNAMP3/HINT.hpp
Normal file
52
DataSpec/DNAMP3/HINT.hpp
Normal file
@@ -0,0 +1,52 @@
|
||||
#ifndef _DNAMP3_HINT_HPP_
|
||||
#define _DNAMP3_HINT_HPP_
|
||||
|
||||
#include "../DNACommon/DNACommon.hpp"
|
||||
#include "PAK.hpp"
|
||||
|
||||
namespace DataSpec
|
||||
{
|
||||
namespace DNAMP3
|
||||
{
|
||||
struct HINT : BigYAML
|
||||
{
|
||||
DECL_YAML
|
||||
Value<atUint32> magic;
|
||||
Value<atUint32> version;
|
||||
|
||||
struct Hint : BigYAML
|
||||
{
|
||||
DECL_YAML
|
||||
String<-1> name;
|
||||
Value<float> unknown1;
|
||||
Value<float> fadeInTime;
|
||||
UniqueID64 stringID;
|
||||
Value<atUint32> unknown2;
|
||||
struct Location : BigYAML
|
||||
{
|
||||
DECL_YAML
|
||||
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());
|
||||
hint.toYAMLStream(writer);
|
||||
return true;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
#endif // _DNAMP1_HINT_HPP_
|
||||
Reference in New Issue
Block a user