#ifndef _DNAMP1_WALLCRAWLERSWARM_HPP_ #define _DNAMP1_WALLCRAWLERSWARM_HPP_ #include "../../DNACommon/DNACommon.hpp" #include "IScriptObject.hpp" #include "Parameters.hpp" namespace DataSpec { namespace DNAMP1 { struct WallCrawlerSwarm : IScriptObject { DECL_YAML String<-1> name; Value location; Value orientation; Value volume; Value active; ActorParameters actorParameters; Value unknown1; AnimationParameters animationParameters; Value unknown2; Value unknown3; UniqueID32 particle1; UniqueID32 particle2; Value unknown4; // always FF Value unknown5; // always FF DamageInfo damageInfo1; Value unknown6; DamageInfo damageInfo2; Value unknown7; Value unknown8; Value unknown9; Value unknown10; Value unknown11; Value unknown12; Value unknown13; Value unknown14; Value unknown15; Value unknown16; Value unknown17; Value unknown18; Value unknown19; Value unknown20; Value unknown21; Value unkown22; Value unkown23; Value unkown24; HealthInfo healthInfo; DamageVulnerability damageVulnerabilty; Value soundID1; // verification needed Value soundID2; // verification needed void addCMDLRigPairs(PAKRouter& pakRouter, std::unordered_map>& addTo) const { actorParameters.addCMDLRigPairs(addTo, animationParameters.getCINF(pakRouter)); } void nameIDs(PAKRouter& pakRouter) const { 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"; } animationParameters.nameANCS(pakRouter, name + "_animp"); actorParameters.nameIDs(pakRouter, name + "_actp"); } void gatherDependencies(std::vector& pathsOut) const { g_curSpec->flattenDependencies(particle1, pathsOut); g_curSpec->flattenDependencies(particle2, pathsOut); animationParameters.depANCS(pathsOut); actorParameters.depIDs(pathsOut); } void gatherScans(std::vector& scansOut) const { actorParameters.scanIDs(scansOut); } }; } } #endif