#ifndef _DNAMP1_DEBRIS_HPP_ #define _DNAMP1_DEBRIS_HPP_ #include "../../DNACommon/DNACommon.hpp" #include "IScriptObject.hpp" #include "Parameters.hpp" namespace DataSpec::DNAMP1 { struct Debris : IScriptObject { AT_DECL_DNA_YAML AT_DECL_DNAV String<-1> name; Value location; Value orientation; Value scale; Value unknown1; Value unknown2; Value unknown3; // CColor Value unknown4; Value unknown5; Value unknown6; Value unknown7; Value unknown8; UniqueID32 model; ActorParameters actorParameters; UniqueID32 particle; Value unknown9; Value unknown10; Value unknown11; void nameIDs(PAKRouter& pakRouter) const { if (model) { PAK::Entry* ent = (PAK::Entry*)pakRouter.lookupEntry(model); ent->name = name + "_model"; } if (particle) { PAK::Entry* ent = (PAK::Entry*)pakRouter.lookupEntry(particle); ent->name = name + "_part"; } actorParameters.nameIDs(pakRouter, name + "_actp"); } void gatherDependencies(std::vector& pathsOut) const { g_curSpec->flattenDependencies(model, pathsOut); g_curSpec->flattenDependencies(particle, pathsOut); actorParameters.depIDs(pathsOut); } void gatherScans(std::vector& scansOut) const { actorParameters.scanIDs(scansOut); } }; } #endif