#ifndef _DNAMP1_SCRIPTBEAM_HPP_ #define _DNAMP1_SCRIPTBEAM_HPP_ #include "../../DNACommon/DNACommon.hpp" #include "IScriptObject.hpp" #include "Parameters.hpp" namespace DataSpec { namespace DNAMP1 { struct ScriptBeam : IScriptObject { DECL_YAML String<-1> name; Value location; Value orientation; Value unknown1; UniqueID32 wpsc; struct ScriptBeamParameters : BigYAML { DECL_YAML Value propertyCount; Value unknown1; UniqueID32 particle1; UniqueID32 particle2; UniqueID32 texture1; UniqueID32 texture2; Value unknown2; Value unknown3; Value unknown4; Value unknown5; Value unknown6; Value unknown7; Value unknown8; Value unknown9; Value unknown10; Value unknown11; // CColor Value unknown12; // CColor void nameIDs(PAKRouter& pakRouter, const std::string& name) 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"; } if (texture1) { PAK::Entry* ent = (PAK::Entry*)pakRouter.lookupEntry(texture1); ent->name = name + "_tex1"; } if (texture2) { PAK::Entry* ent = (PAK::Entry*)pakRouter.lookupEntry(texture2); ent->name = name + "_tex2"; } } } beamParametrs; DamageInfo damageInfo; void nameIDs(PAKRouter& pakRouter) const { if (wpsc) { PAK::Entry* ent = (PAK::Entry*)pakRouter.lookupEntry(wpsc); ent->name = name + "_wpsc"; } beamParametrs.nameIDs(pakRouter, name + "_beamp"); } }; } } #endif