2016-03-29 00:07:38 +00:00
|
|
|
#ifndef __COMMON_CRSC_HPP__
|
|
|
|
#define __COMMON_CRSC_HPP__
|
2016-03-28 08:54:02 +00:00
|
|
|
|
|
|
|
#include "ParticleCommon.hpp"
|
|
|
|
#include "PAK.hpp"
|
|
|
|
#include "athena/FileWriter.hpp"
|
|
|
|
#include "optional.hpp"
|
|
|
|
|
2017-12-29 08:08:12 +00:00
|
|
|
namespace DataSpec::DNAParticle
|
2016-03-28 08:54:02 +00:00
|
|
|
{
|
|
|
|
template <class IDType>
|
2018-02-22 07:24:51 +00:00
|
|
|
struct CRSM : BigDNA
|
2016-03-28 08:54:02 +00:00
|
|
|
{
|
2018-02-22 07:24:51 +00:00
|
|
|
AT_DECL_EXPLICIT_DNA_YAML
|
|
|
|
AT_SUBDECL_DNA
|
2016-03-28 08:54:02 +00:00
|
|
|
std::unordered_map<FourCC, ChildResourceFactory<IDType>> x0_generators;
|
|
|
|
std::unordered_map<FourCC, uint32_t> x10_sfx;
|
|
|
|
std::unordered_map<FourCC, ChildResourceFactory<IDType>> x20_decals;
|
|
|
|
float x30_RNGE;
|
|
|
|
float x34_FOFF;
|
|
|
|
|
|
|
|
CRSM();
|
2016-10-02 22:41:36 +00:00
|
|
|
|
|
|
|
void gatherDependencies(std::vector<hecl::ProjectPath>&) const;
|
2016-03-28 08:54:02 +00:00
|
|
|
};
|
|
|
|
template <class IDType>
|
|
|
|
bool ExtractCRSM(PAKEntryReadStream& rs, const hecl::ProjectPath& outPath);
|
|
|
|
|
|
|
|
template <class IDType>
|
|
|
|
bool WriteCRSM(const CRSM<IDType>& crsm, const hecl::ProjectPath& outPath);
|
|
|
|
}
|
2016-03-29 00:07:38 +00:00
|
|
|
#endif // __COMMON_CRSC_HPP__
|