metaforce/DataSpec/DNACommon/DGRP.hpp

31 lines
625 B
C++
Raw Normal View History

2016-04-12 11:37:07 +00:00
#ifndef __COMMON_DGRP_HPP__
#define __COMMON_DGRP_HPP__
#include "DNACommon.hpp"
#include "PAK.hpp"
2017-12-29 08:08:12 +00:00
namespace DataSpec::DNADGRP
2016-04-12 11:37:07 +00:00
{
template <class IDType>
struct DGRP : BigYAML
{
DECL_YAML
Value<atUint32> dependCount;
struct ObjectTag : BigYAML
{
DECL_YAML
DNAFourCC type;
2016-06-02 06:26:50 +00:00
IDType id;
2016-04-12 11:37:07 +00:00
};
Vector<ObjectTag, DNA_COUNT(dependCount)> depends;
};
template <class IDType>
bool ExtractDGRP(PAKEntryReadStream& rs, const hecl::ProjectPath& outPath);
template <class IDType>
bool WriteDGRP(const DGRP<IDType>& dgrp, const hecl::ProjectPath& outPath);
}
#endif // __COMMON_DGRP_HPP__