metaforce/DataSpec/DNACommon/CRSC.hpp

29 lines
791 B
C++
Raw Normal View History

2018-10-06 20:42:33 -07:00
#pragma once
2016-03-28 01:54:02 -07:00
#include "ParticleCommon.hpp"
#include "PAK.hpp"
#include "athena/FileWriter.hpp"
#include <optional>
2016-03-28 01:54:02 -07:00
2018-12-07 21:30:43 -08:00
namespace DataSpec::DNAParticle {
2016-03-28 01:54:02 -07:00
template <class IDType>
2018-12-07 21:30:43 -08:00
struct CRSM : BigDNA {
AT_DECL_EXPLICIT_DNA_YAML
AT_SUBDECL_DNA
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;
2016-03-28 01:54:02 -07:00
2018-12-07 21:30:43 -08:00
CRSM();
2016-10-02 15:41:36 -07:00
2018-12-07 21:30:43 -08:00
void gatherDependencies(std::vector<hecl::ProjectPath>&) const;
2016-03-28 01:54:02 -07: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);
2018-12-07 21:30:43 -08:00
} // namespace DataSpec::DNAParticle