#ifndef _DNAMP1_ACTOR_HPP_ #define _DNAMP1_ACTOR_HPP_ #include "IScriptObject.hpp" #include "Parameters.hpp" namespace Retro { namespace DNAMP1 { struct Actor : IScriptObject { DECL_YAML String<-1> name; Value location; Value orientation; Value scale; Value unkown1; Value scanOffset; Value unknown2; Value unknown3; HealthInfo healthInfo; DamageVulnerability damageVulnerability; UniqueID32 model; AnimationParameters animationParameters; ActorParameters actorParameters; Value unkown4; Value unkown5; Value unkown6; Value unkown7; Value unkown8; Value unknown9; Value unknown10; Value unknown11; Value unknown12; Value unknown13; Value unknown14; void addCMDLRigPairs(PAKRouter& pakRouter, std::unordered_map>& addTo) const { actorParameters.addCMDLRigPairs(addTo, animationParameters.getCINF(pakRouter)); } void nameIDs(PAKRouter& pakRouter) const { if (model) { PAK::Entry* ent = (PAK::Entry*)pakRouter.lookupEntry(model); ent->name = name + "_model"; } animationParameters.nameANCS(pakRouter, name + "_animp"); actorParameters.nameIDs(pakRouter, name + "_actp"); } }; } } #endif