#pragma once #include "../../DNACommon/DNACommon.hpp" #include "IScriptObject.hpp" #include "Parameters.hpp" namespace DataSpec::DNAMP1 { struct DebrisExtended : IScriptObject { AT_DECL_DNA_YAML AT_DECL_DNAV String<-1> name; Value location; Value orientation; Value scale; Value linConeAngle; Value linMinMag; Value linMaxMag; Value angMinMag; Value angMaxMag; Value minDuration; Value maxDuration; Value colorInT; Value colorOutT; DNAColor color; DNAColor endsColor; Value scaleOutT; Value endScale; Value restitution; Value downwardSpeed; Value localOffset; UniqueID32 model; ActorParameters actorParameters; UniqueID32 particle1; Value particle1Scale; Value particle1GlobalTranslation; Value deferDeleteTillParticle1Done; Value particle1Or; UniqueID32 particle2; Value particle2Scale; Value particle2GlobalTranslation; Value deferDeleteTillParticle2Done; Value particle2Or; UniqueID32 particle3; Value particle3Scale; Value particle3Or; Value solid; Value dieOnProjectile; Value noBounce; Value active; void nameIDs(PAKRouter& pakRouter) const { if (model.isValid()) { PAK::Entry* ent = (PAK::Entry*)pakRouter.lookupEntry(model); ent->name = name + "_model"; } if (particle1.isValid()) { PAK::Entry* ent = (PAK::Entry*)pakRouter.lookupEntry(particle1); ent->name = name + "_part1"; } if (particle2.isValid()) { PAK::Entry* ent = (PAK::Entry*)pakRouter.lookupEntry(particle2); ent->name = name + "_part2"; } if (particle3.isValid()) { PAK::Entry* ent = (PAK::Entry*)pakRouter.lookupEntry(particle3); ent->name = name + "_part3"; } actorParameters.nameIDs(pakRouter, name + "_actp"); } void gatherDependencies(std::vector& pathsOut, std::vector& lazyOut) const { g_curSpec->flattenDependencies(model, pathsOut); g_curSpec->flattenDependencies(particle1, pathsOut); g_curSpec->flattenDependencies(particle2, pathsOut); g_curSpec->flattenDependencies(particle3, pathsOut); actorParameters.depIDs(pathsOut, lazyOut); } void gatherScans(std::vector& scansOut) const { actorParameters.scanIDs(scansOut); } }; } // namespace DataSpec::DNAMP1