2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 12:27:43 +00:00

Add more particle DNAs

This commit is contained in:
2016-03-28 01:54:02 -07:00
parent a066c66e5b
commit 3426aaf260
14 changed files with 1303 additions and 302 deletions

View File

@@ -0,0 +1,40 @@
#ifndef CRSC_HPP
#define CRSC_HPP
#include "ParticleCommon.hpp"
#include "PAK.hpp"
#include "athena/FileWriter.hpp"
#include "optional.hpp"
namespace DataSpec
{
namespace DNAParticle
{
template <class IDType>
struct CRSM : BigYAML
{
static const char* DNAType() { return "CRSM"; }
const char* DNATypeV() const { return DNAType(); }
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;
void read(athena::io::YAMLDocReader& r);
void write(athena::io::YAMLDocWriter& w) const;
size_t binarySize(size_t __isz) const;
void read(athena::io::IStreamReader& r);
void write(athena::io::IStreamWriter& w) const;
CRSM();
};
template <class IDType>
bool ExtractCRSM(PAKEntryReadStream& rs, const hecl::ProjectPath& outPath);
template <class IDType>
bool WriteCRSM(const CRSM<IDType>& crsm, const hecl::ProjectPath& outPath);
}
}
#endif // CRSC_HPP