#ifndef _DNAMP1_GUNTURRET_HPP_ #define _DNAMP1_GUNTURRET_HPP_ #include "../../DNACommon/DNACommon.hpp" #include "IScriptObject.hpp" #include "Parameters.hpp" namespace DataSpec { namespace DNAMP1 { struct GunTurret : IScriptObject { DECL_YAML String<-1> name; Value unknown1; Value location; Value orientation; Value scale; Value unknown2; Value scanOffset; AnimationParameters animationParameters; ActorParameters actorParameters; HealthInfo healthInfo; DamageVulnerability damageVulnerabilty; Value unknown3; Value unknown4; Value unknown5; Value unknown6; Value unknown7; Value unknown8; Value unknown9; Value unknown10; Value unknown11; Value unknown12; Value unknown13; Value unknown14; Value unknown15; Value unknown16; Value unknown17; UniqueID32 unknown18; DamageInfo damageInfo; UniqueID32 particle1; UniqueID32 particle2; UniqueID32 particle3; UniqueID32 particle4; UniqueID32 particle5; UniqueID32 particle6; UniqueID32 particle7; Value unknown19; Value unknown20; Value unknown21; Value unknown22; Value unknown23; Value unknown24; UniqueID32 model; Value unknown25; Value unknown26; Value unknown27; Value unknown28; Value unknown29; Value unknown30; void addCMDLRigPairs(PAKRouter& pakRouter, std::unordered_map>& addTo) const { actorParameters.addCMDLRigPairs(addTo, animationParameters.getCINF(pakRouter)); } void nameIDs(PAKRouter& pakRouter) const { if (unknown18) { PAK::Entry* ent = (PAK::Entry*)pakRouter.lookupEntry(unknown18); ent->name = name + "_unknown18"; } 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"; } if (particle4) { PAK::Entry* ent = (PAK::Entry*)pakRouter.lookupEntry(particle4); ent->name = name + "_part4"; } if (particle5) { PAK::Entry* ent = (PAK::Entry*)pakRouter.lookupEntry(particle5); ent->name = name + "_part5"; } if (particle6) { PAK::Entry* ent = (PAK::Entry*)pakRouter.lookupEntry(particle6); ent->name = name + "_part6"; } if (particle7) { PAK::Entry* ent = (PAK::Entry*)pakRouter.lookupEntry(particle7); ent->name = name + "_part7"; } animationParameters.nameANCS(pakRouter, name + "_animp"); actorParameters.nameIDs(pakRouter, name + "_actp"); } }; } } #endif