#ifndef _DNAMP1_ACTOR_HPP_ #define _DNAMP1_ACTOR_HPP_ #include "IScriptObject.hpp" #include "Parameters.hpp" namespace DataSpec::DNAMP1 { struct Actor : IScriptObject { DECL_YAML String<-1> name SO_NAME_SPECPROP(); Value location SO_LOCATION_SPECPROP(); Value orientation SO_ORIENTATION_SPECPROP(); Value scale SO_SCALE_SPECPROP(); Value collisionExtent SO_COLLISION_EXTENT_SPECPROP(); Value collisionOffset SO_COLLISION_OFFSET_SPECPROP(); 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"); } void gatherDependencies(std::vector& pathsOut) const { g_curSpec->flattenDependencies(model, pathsOut); animationParameters.depANCS(pathsOut); actorParameters.depIDs(pathsOut); } void gatherScans(std::vector& scansOut) const { actorParameters.scanIDs(scansOut); } zeus::CAABox getVISIAABB(hecl::blender::Token& btok) const; }; } #endif