#ifndef _DNAMP1_DEBRISEXTENDED_HPP_ #define _DNAMP1_DEBRISEXTENDED_HPP_ #include "../../DNACommon/DNACommon.hpp" #include "IScriptObject.hpp" #include "Parameters.hpp" namespace DataSpec { namespace DNAMP1 { struct DebrisExtended : IScriptObject { DECL_YAML String<-1> name; Value location; Value orientation; Value scale; Value unknown1; Value unknown2; Value unknown3; Value unknown4; Value unknown5; Value unknown6; Value unknown7; Value unknown8; Value unknown9; Value unknown10; // CColor Value unknown11; // CColor Value unknown12; Value unknown13; Value unknown14; Value unknown15; Value unknown16; UniqueID32 model; ActorParameters actorParameters; UniqueID32 particle1; Value unknown17; Value unknown18; Value unknown19; Value unknown20; UniqueID32 particle2; Value unknown21; Value unknown22; Value unknown23; Value unknown24; UniqueID32 particle3; Value unknown25; Value unknown26; Value unknown27; Value unknown28; Value unknown29; Value unknown30; void nameIDs(PAKRouter& pakRouter) const { if (model) { PAK::Entry* ent = (PAK::Entry*)pakRouter.lookupEntry(model); ent->name = name + "_model"; } if (particle1) { PAK::Entry* ent = (PAK::Entry*)pakRouter.lookupEntry(particle1); ent->name = name + "_part1"; } if (particle2) { PAK::Entry* ent = (PAK::Entry*)pakRouter.lookupEntry(particle2); ent->name = name + "_part2"; } if (particle3) { PAK::Entry* ent = (PAK::Entry*)pakRouter.lookupEntry(particle3); ent->name = name + "_part3"; } actorParameters.nameIDs(pakRouter, name + "_actp"); } void gatherDependencies(std::vector& pathsOut) const { g_curSpec->flattenDependencies(model, pathsOut); g_curSpec->flattenDependencies(particle1, pathsOut); g_curSpec->flattenDependencies(particle2, pathsOut); g_curSpec->flattenDependencies(particle3, pathsOut); actorParameters.depIDs(pathsOut); } void gatherScans(std::vector& scansOut) const { actorParameters.scanIDs(scansOut); } }; } } #endif