metaforce/DataSpec/DNAMP1/SCLY.hpp

31 lines
1.0 KiB
C++
Raw Normal View History

2018-10-07 03:42:33 +00:00
#pragma once
2015-09-10 20:30:35 +00:00
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"
2018-12-08 05:30:43 +00:00
namespace DataSpec::DNAMP1 {
struct SCLY : BigDNA {
AT_DECL_EXPLICIT_DNA_YAML
2019-07-20 04:27:21 +00:00
DNAFourCC fourCC;
2018-12-08 05:30:43 +00:00
Value<atUint32> version;
Value<atUint32> layerCount;
2015-09-10 20:30:35 +00:00
2018-12-08 05:30:43 +00:00
Vector<atUint32, AT_DNA_COUNT(layerCount)> layerSizes;
2015-09-10 20:30:35 +00:00
2018-12-08 05:30:43 +00:00
struct ScriptLayer : BigDNA {
AT_DECL_EXPLICIT_DNA_YAML
Value<atUint8> unknown;
Value<atUint32> objectCount;
Vector<std::unique_ptr<IScriptObject>, AT_DNA_COUNT(objectCount)> objects;
void addCMDLRigPairs(PAKRouter<PAKBridge>& pakRouter, CharacterAssociations<UniqueID32>& charAssoc) const;
void nameIDs(PAKRouter<PAKBridge>& pakRouter) const;
2018-12-08 05:30:43 +00:00
};
Vector<ScriptLayer, AT_DNA_COUNT(layerCount)> layers;
void exportToLayerDirectories(const PAK::Entry&, PAKRouter<PAKBridge>&, bool) const;
void addCMDLRigPairs(PAKRouter<PAKBridge>& pakRouter, CharacterAssociations<UniqueID32>& charAssoc) const;
void nameIDs(PAKRouter<PAKBridge>& pakRouter) const;
2015-09-10 20:30:35 +00:00
};
2018-12-08 05:30:43 +00:00
} // namespace DataSpec::DNAMP1