metaforce/DataSpec/DNAMP1/SCLY.hpp

38 lines
1.2 KiB
C++
Raw Normal View History

2015-09-10 20:30:35 +00:00
#ifndef _DNAMP1_SCLY_HPP_
#define _DNAMP1_SCLY_HPP_
2018-06-29 20:21:36 +00:00
#include "DataSpec/DNACommon/DNACommon.hpp"
2015-09-10 20:30:35 +00:00
#include "ScriptObjects/IScriptObject.hpp"
#include "DNAMP1.hpp"
2017-12-29 08:08:12 +00:00
namespace DataSpec::DNAMP1
2015-09-10 20:30:35 +00:00
{
2018-02-22 07:24:51 +00:00
struct SCLY : BigDNA
2015-09-10 20:30:35 +00:00
{
2018-02-22 07:24:51 +00:00
AT_DECL_EXPLICIT_DNA_YAML
2015-09-10 20:30:35 +00:00
Value<FourCC> fourCC;
Value<atUint32> version;
Value<atUint32> layerCount;
2018-02-25 08:23:27 +00:00
Vector<atUint32, AT_DNA_COUNT(layerCount)> layerSizes;
2015-09-10 20:30:35 +00:00
2018-02-22 07:24:51 +00:00
struct ScriptLayer : BigDNA
2015-09-10 20:30:35 +00:00
{
2018-02-22 07:24:51 +00:00
AT_DECL_EXPLICIT_DNA_YAML
2015-09-10 20:30:35 +00:00
Value<atUint8> unknown;
Value<atUint32> objectCount;
2018-02-25 08:23:27 +00:00
Vector<std::unique_ptr<IScriptObject>, AT_DNA_COUNT(objectCount)> objects;
void addCMDLRigPairs(PAKRouter<PAKBridge>& pakRouter,
std::unordered_map<UniqueID32, std::pair<UniqueID32, UniqueID32>>& addTo) const;
void nameIDs(PAKRouter<PAKBridge>& pakRouter) const;
2015-09-10 20:30:35 +00:00
};
2018-02-25 08:23:27 +00:00
Vector<ScriptLayer, AT_DNA_COUNT(layerCount)> layers;
2015-09-10 20:30:35 +00:00
void exportToLayerDirectories(const PAK::Entry &, PAKRouter<PAKBridge>&, bool) const;
void addCMDLRigPairs(PAKRouter<PAKBridge>& pakRouter,
std::unordered_map<UniqueID32, std::pair<UniqueID32, UniqueID32>>& addTo) const;
void nameIDs(PAKRouter<PAKBridge>& pakRouter) const;
2015-09-10 20:30:35 +00:00
};
}
#endif