2015-09-10 20:30:35 +00:00
|
|
|
#ifndef _DNAMP1_PARAMETERS_HPP_
|
|
|
|
#define _DNAMP1_PARAMETERS_HPP_
|
|
|
|
|
|
|
|
#include "../../DNACommon/DNACommon.hpp"
|
2015-11-10 02:07:15 +00:00
|
|
|
#include "../DNAMP1.hpp"
|
2016-10-02 22:41:36 +00:00
|
|
|
#include "../SAVW.hpp"
|
2017-12-16 02:16:20 +00:00
|
|
|
#include "specter/genie.hpp"
|
2015-09-10 20:30:35 +00:00
|
|
|
|
2017-12-29 08:08:12 +00:00
|
|
|
namespace DataSpec::DNAMP1
|
2015-09-10 20:30:35 +00:00
|
|
|
{
|
|
|
|
|
2015-11-21 01:16:07 +00:00
|
|
|
enum class EPickupType : atUint32
|
2015-09-10 20:30:35 +00:00
|
|
|
{
|
2017-05-13 04:57:24 +00:00
|
|
|
PowerBeam = 0,
|
|
|
|
IceBeam = 1,
|
|
|
|
WaveBeam = 2,
|
|
|
|
PlasmaBeam = 3,
|
|
|
|
Missile = 4,
|
|
|
|
ScanVisor = 5,
|
|
|
|
MorphBallBomb = 6,
|
|
|
|
PowerBomb = 7,
|
|
|
|
Flamethrower = 8,
|
|
|
|
ThermalVisor = 9,
|
|
|
|
ChargeBeam = 10,
|
|
|
|
SuperMissile = 11,
|
|
|
|
GrappleBeam = 12,
|
|
|
|
XRayVisor = 13,
|
|
|
|
IceSpreader = 14,
|
|
|
|
SpaceJump = 15,
|
|
|
|
MorphBall = 16,
|
|
|
|
CombatVisor = 17,
|
|
|
|
BoostBall = 18,
|
|
|
|
SpiderBall = 19,
|
|
|
|
PowerSuit = 20,
|
|
|
|
GravitySuit = 21,
|
|
|
|
VariaSuit = 22,
|
|
|
|
PhazonSuit = 23,
|
|
|
|
EnergyTank = 24,
|
|
|
|
UnknownItem1 = 25,
|
|
|
|
HealthRefill = 26,
|
|
|
|
UnknownItem2 = 27,
|
|
|
|
WaveBuster = 28,
|
|
|
|
Truth = 29,
|
|
|
|
Strength = 30,
|
|
|
|
Elder = 31,
|
|
|
|
Wild = 32,
|
|
|
|
LifeGiver = 33,
|
|
|
|
Warrior = 34,
|
|
|
|
Chozo = 35,
|
|
|
|
Nature = 36,
|
|
|
|
Sun = 37,
|
|
|
|
World = 38,
|
|
|
|
Spirit = 39,
|
|
|
|
Newborn = 40
|
2017-12-16 02:16:20 +00:00
|
|
|
} SPECTER_ENUM("Pickup Type", "", EPickupType);
|
2015-09-10 20:30:35 +00:00
|
|
|
|
2015-11-21 01:16:07 +00:00
|
|
|
enum class ESpecialFunctionType : atUint32
|
2015-09-10 20:30:35 +00:00
|
|
|
{
|
2015-11-21 01:16:07 +00:00
|
|
|
What,
|
|
|
|
PlayerFollowLocator,
|
|
|
|
SpinnerController,
|
|
|
|
ObjectFollowLocator,
|
|
|
|
Function4,
|
|
|
|
InventoryActivator,
|
|
|
|
MapStation,
|
|
|
|
SaveStation,
|
|
|
|
IntroBossRingController,
|
|
|
|
ViewFrustumTest,
|
|
|
|
ShotSpinnerController,
|
|
|
|
EscapeSequence,
|
|
|
|
BossEnergyBar,
|
|
|
|
EndGame,
|
|
|
|
HUDFadeIn,
|
|
|
|
CinematicSkip,
|
2016-10-02 22:41:36 +00:00
|
|
|
ScriptLayerController,
|
2015-11-21 01:16:07 +00:00
|
|
|
RainSimulator,
|
|
|
|
AreaDamage,
|
|
|
|
ObjectFollowObject,
|
|
|
|
HintSystem,
|
|
|
|
DropBomb,
|
|
|
|
Function22,
|
|
|
|
MissileStation,
|
|
|
|
Billboard,
|
|
|
|
PlayerInAreaRelay,
|
|
|
|
HUDTarget,
|
|
|
|
FogFader,
|
|
|
|
EnterLogbook,
|
|
|
|
PowerBombStation,
|
|
|
|
Ending,
|
|
|
|
FusionRelay,
|
|
|
|
WeaponSwitch // PAL Only
|
2017-12-16 02:16:20 +00:00
|
|
|
} SPECTER_ENUM("Special Function", "", EPickupType);
|
2015-09-10 20:30:35 +00:00
|
|
|
|
2018-02-22 07:24:51 +00:00
|
|
|
struct AnimationParameters : BigDNA
|
2015-09-10 20:30:35 +00:00
|
|
|
{
|
2018-02-22 07:24:51 +00:00
|
|
|
AT_DECL_DNA_YAML
|
2015-09-10 20:30:35 +00:00
|
|
|
UniqueID32 animationCharacterSet;
|
|
|
|
Value<atUint32> character;
|
|
|
|
Value<atUint32> defaultAnimation;
|
2015-10-27 00:19:03 +00:00
|
|
|
|
2015-11-10 02:07:15 +00:00
|
|
|
UniqueID32 getCINF(PAKRouter<PAKBridge>& pakRouter) const;
|
2015-10-27 00:19:03 +00:00
|
|
|
|
|
|
|
void nameANCS(PAKRouter<PAKBridge>& pakRouter, const std::string& name) const
|
|
|
|
{
|
|
|
|
if (!animationCharacterSet)
|
|
|
|
return;
|
|
|
|
PAK::Entry* ancsEnt = (PAK::Entry*)pakRouter.lookupEntry(animationCharacterSet);
|
|
|
|
if (ancsEnt->name.empty())
|
|
|
|
ancsEnt->name = name;
|
|
|
|
}
|
2016-10-02 22:41:36 +00:00
|
|
|
|
|
|
|
void depANCS(std::vector<hecl::ProjectPath>& pathsOut) const
|
2018-03-28 08:09:41 +00:00
|
|
|
{
|
|
|
|
g_curSpec->flattenDependencies(animationCharacterSet, pathsOut, character);
|
|
|
|
}
|
|
|
|
|
|
|
|
void depANCSAll(std::vector<hecl::ProjectPath>& pathsOut) const
|
2016-10-02 22:41:36 +00:00
|
|
|
{
|
|
|
|
g_curSpec->flattenDependencies(animationCharacterSet, pathsOut);
|
|
|
|
}
|
2015-09-10 20:30:35 +00:00
|
|
|
};
|
|
|
|
|
2018-02-22 07:24:51 +00:00
|
|
|
struct BehaveChance : BigDNA
|
2015-09-10 20:30:35 +00:00
|
|
|
{
|
2018-02-22 07:24:51 +00:00
|
|
|
AT_DECL_DNA_YAML
|
2015-09-10 20:30:35 +00:00
|
|
|
Value<atUint32> propertyCount;
|
|
|
|
Value<float> unknown1;
|
|
|
|
Value<float> unknown2;
|
|
|
|
Value<float> unknown3;
|
|
|
|
Value<float> unknown4;
|
|
|
|
Value<float> unknown5;
|
|
|
|
Value<float> unknown6;
|
|
|
|
Value<float> unknown7;
|
|
|
|
};
|
|
|
|
|
2018-02-22 07:24:51 +00:00
|
|
|
struct DamageInfo : BigDNA
|
2015-09-10 20:30:35 +00:00
|
|
|
{
|
2018-02-22 07:24:51 +00:00
|
|
|
AT_DECL_DNA_YAML
|
2015-09-10 20:30:35 +00:00
|
|
|
Value<atUint32> propertyCount;
|
|
|
|
Value<atUint32> weaponType;
|
|
|
|
Value<float> damage;
|
|
|
|
Value<float> radius;
|
|
|
|
Value<float> knockbackPower;
|
|
|
|
};
|
|
|
|
|
2018-02-22 07:24:51 +00:00
|
|
|
struct DamageVulnerability : BigDNA
|
2015-09-10 20:30:35 +00:00
|
|
|
{
|
2018-02-22 07:24:51 +00:00
|
|
|
AT_DECL_DNA_YAML
|
2015-09-10 20:30:35 +00:00
|
|
|
Value<atUint32> propertyCount;
|
|
|
|
Value<atUint32> power;
|
|
|
|
Value<atUint32> ice;
|
|
|
|
Value<atUint32> wave;
|
|
|
|
Value<atUint32> plasma;
|
|
|
|
Value<atUint32> bomb;
|
|
|
|
Value<atUint32> powerBomb;
|
|
|
|
Value<atUint32> missile;
|
|
|
|
Value<atUint32> boostBall;
|
|
|
|
Value<atUint32> phazon;
|
|
|
|
Value<atUint32> enemyWeapon1;
|
|
|
|
Value<atUint32> enemyWeapon2Poison;
|
|
|
|
Value<atUint32> enemyWeapon3Lava;
|
|
|
|
Value<atUint32> enemyWeapon4;
|
|
|
|
Value<atUint32> unkownWeapon1;
|
|
|
|
Value<atUint32> unkownWeapon2;
|
2018-02-12 05:30:21 +00:00
|
|
|
Value<atUint32> deflected;
|
2018-02-22 07:24:51 +00:00
|
|
|
struct ChargedBeams : BigDNA
|
2015-09-10 20:30:35 +00:00
|
|
|
{
|
2018-02-22 07:24:51 +00:00
|
|
|
AT_DECL_DNA_YAML
|
2015-09-10 20:30:35 +00:00
|
|
|
Value<atUint32> propertyCount;
|
|
|
|
Value<atUint32> power;
|
|
|
|
Value<atUint32> ice;
|
|
|
|
Value<atUint32> wave;
|
|
|
|
Value<atUint32> plasma;
|
2018-02-12 05:30:21 +00:00
|
|
|
Value<atUint32> deflected;
|
2015-09-10 20:30:35 +00:00
|
|
|
} chargedBeams;
|
|
|
|
|
2018-02-22 07:24:51 +00:00
|
|
|
struct BeamCombos : BigDNA
|
2015-09-10 20:30:35 +00:00
|
|
|
{
|
2018-02-22 07:24:51 +00:00
|
|
|
AT_DECL_DNA_YAML
|
2015-09-10 20:30:35 +00:00
|
|
|
Value<atUint32> propertyCount;
|
|
|
|
Value<atUint32> superMissiles;
|
|
|
|
Value<atUint32> iceSpreader;
|
|
|
|
Value<atUint32> wavebuster;
|
|
|
|
Value<atUint32> flameThrower;
|
2018-02-12 05:30:21 +00:00
|
|
|
Value<atUint32> deflected;
|
2015-09-10 20:30:35 +00:00
|
|
|
} beamCombos;
|
|
|
|
};
|
|
|
|
|
2018-02-22 07:24:51 +00:00
|
|
|
struct FlareDefinition : BigDNA
|
2015-09-10 20:30:35 +00:00
|
|
|
{
|
2018-02-22 07:24:51 +00:00
|
|
|
AT_DECL_DNA_YAML
|
2015-09-10 20:30:35 +00:00
|
|
|
Value<atUint32> propertyCount;
|
|
|
|
UniqueID32 texture;
|
|
|
|
Value<float> unknown1;
|
|
|
|
Value<float> unknown2;
|
|
|
|
Value<atVec4f> unknown4; // CColor
|
2015-10-27 00:19:03 +00:00
|
|
|
|
|
|
|
void nameIDs(PAKRouter<PAKBridge>& pakRouter, const std::string& name) const
|
|
|
|
{
|
|
|
|
if (texture)
|
|
|
|
{
|
|
|
|
PAK::Entry* ent = (PAK::Entry*)pakRouter.lookupEntry(texture);
|
|
|
|
ent->name = name + "_texture";
|
|
|
|
}
|
|
|
|
}
|
2016-10-02 22:41:36 +00:00
|
|
|
|
|
|
|
void depIDs(std::vector<hecl::ProjectPath>& pathsOut) const
|
|
|
|
{
|
|
|
|
g_curSpec->flattenDependencies(texture, pathsOut);
|
|
|
|
}
|
2015-09-10 20:30:35 +00:00
|
|
|
};
|
|
|
|
|
2018-02-22 07:24:51 +00:00
|
|
|
struct GrappleParameters : BigDNA
|
2015-09-10 20:30:35 +00:00
|
|
|
{
|
2018-02-22 07:24:51 +00:00
|
|
|
AT_DECL_DNA_YAML
|
2015-09-10 20:30:35 +00:00
|
|
|
Value<atUint32> propertyCount;
|
|
|
|
Value<float> unknown1;
|
|
|
|
Value<float> unknown2;
|
|
|
|
Value<float> unknown3;
|
|
|
|
Value<float> unknown4;
|
|
|
|
Value<float> unknown5;
|
|
|
|
Value<float> unknown6;
|
|
|
|
Value<float> unknown7;
|
|
|
|
Value<float> unknown8;
|
|
|
|
Value<float> unknown9;
|
|
|
|
Value<float> unknown10;
|
|
|
|
Value<float> unknown11;
|
|
|
|
Value<bool> disableTurning;
|
|
|
|
};
|
|
|
|
|
2018-02-22 07:24:51 +00:00
|
|
|
struct HealthInfo : BigDNA
|
2015-09-10 20:30:35 +00:00
|
|
|
{
|
2018-02-22 07:24:51 +00:00
|
|
|
AT_DECL_DNA_YAML
|
2015-09-10 20:30:35 +00:00
|
|
|
Value<atUint32> propertyCount;
|
2017-12-16 02:16:20 +00:00
|
|
|
Value<float> health SPECTER_PROPERTY("Health", "Base health for object");
|
|
|
|
Value<float> knockbackResistence SPECTER_PROPERTY("Knockback Resistence", "");
|
|
|
|
} SPECTER_PROPERTY("Health Info", "");
|
2015-09-10 20:30:35 +00:00
|
|
|
|
2018-02-22 07:24:51 +00:00
|
|
|
struct LightParameters : BigDNA
|
2015-09-10 20:30:35 +00:00
|
|
|
{
|
2018-02-22 07:24:51 +00:00
|
|
|
AT_DECL_DNA_YAML
|
2015-09-10 20:30:35 +00:00
|
|
|
Value<atUint32> propertyCount;
|
|
|
|
Value<bool> unknown1;
|
|
|
|
Value<float> unknown2;
|
|
|
|
Value<atUint32> shadowTesselation;
|
|
|
|
Value<float> unknown3;
|
|
|
|
Value<float> unknown4;
|
2017-04-10 06:57:00 +00:00
|
|
|
Value<atVec4f> noLightsAmbient; // CColor
|
|
|
|
Value<bool> makeLights;
|
2015-09-10 20:30:35 +00:00
|
|
|
Value<atUint32> worldLightingOptions;
|
|
|
|
Value<atUint32> lightRecalculationOptions;
|
2017-04-10 06:57:00 +00:00
|
|
|
Value<atVec3f> actorPosBias;
|
|
|
|
Value<atUint32> maxDynamicLights;
|
|
|
|
Value<atUint32> maxAreaLights;
|
|
|
|
Value<bool> ambientChannelOverflow;
|
|
|
|
Value<atUint32> layerIndex;
|
2015-09-10 20:30:35 +00:00
|
|
|
};
|
|
|
|
|
2018-02-22 07:24:51 +00:00
|
|
|
struct PatternedInfo : BigDNA
|
2015-09-10 20:30:35 +00:00
|
|
|
{
|
2018-02-22 07:24:51 +00:00
|
|
|
AT_DECL_DNA_YAML
|
2015-09-10 20:30:35 +00:00
|
|
|
Value<atUint32> propertyCount;
|
|
|
|
Value<float> mass;
|
|
|
|
Value<float> speed;
|
|
|
|
Value<float> turnSpeed;
|
|
|
|
Value<float> detectionRange;
|
|
|
|
Value<float> detectionHeightRange;
|
|
|
|
Value<float> dectectionAngle;
|
|
|
|
Value<float> minAttackRange;
|
|
|
|
Value<float> maxAttackRange;
|
|
|
|
Value<float> averageAttackTime;
|
|
|
|
Value<float> attackTimeVariation;
|
|
|
|
Value<float> leashRadius;
|
|
|
|
Value<float> playerLeashRadius;
|
|
|
|
Value<float> playerLeashTime;
|
|
|
|
DamageInfo contactDamage;
|
|
|
|
Value<float> damageWaitTime;
|
|
|
|
HealthInfo healthInfo;
|
|
|
|
DamageVulnerability damageVulnerability;
|
|
|
|
Value<float> unkown1;
|
|
|
|
Value<float> unkown2;
|
|
|
|
Value<atVec3f> unkown3;
|
|
|
|
Value<float> unkown4;
|
|
|
|
Value<float> unkown5;
|
|
|
|
Value<float> unkown6;
|
|
|
|
Value<float> unkown7;
|
|
|
|
Value<atUint32> soundID1;
|
|
|
|
AnimationParameters animationParameters;
|
|
|
|
Value<bool> active;
|
|
|
|
UniqueID32 stateMachine;
|
|
|
|
Value<float> unknown8;
|
|
|
|
Value<float> unknown9;
|
|
|
|
Value<float> unknown10;
|
|
|
|
Value<atUint32> unknown11;
|
|
|
|
Value<atVec3f> unknown12;
|
|
|
|
UniqueID32 particle1;
|
|
|
|
Value<atUint32> unknown13;
|
|
|
|
Value<atVec3f> unknown14;
|
|
|
|
UniqueID32 particle2;
|
|
|
|
Value<atUint32> soundID2;
|
2015-10-27 00:19:03 +00:00
|
|
|
|
|
|
|
void nameIDs(PAKRouter<PAKBridge>& pakRouter, const std::string& name) const
|
|
|
|
{
|
|
|
|
animationParameters.nameANCS(pakRouter, name + "_animp");
|
|
|
|
if (stateMachine)
|
|
|
|
{
|
|
|
|
PAK::Entry* ent = (PAK::Entry*)pakRouter.lookupEntry(stateMachine);
|
|
|
|
ent->name = name + "_fsm";
|
|
|
|
}
|
|
|
|
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";
|
|
|
|
}
|
|
|
|
}
|
2016-10-02 22:41:36 +00:00
|
|
|
|
|
|
|
void depIDs(std::vector<hecl::ProjectPath>& pathsOut) const
|
|
|
|
{
|
|
|
|
animationParameters.depANCS(pathsOut);
|
|
|
|
g_curSpec->flattenDependencies(stateMachine, pathsOut);
|
|
|
|
g_curSpec->flattenDependencies(particle1, pathsOut);
|
|
|
|
g_curSpec->flattenDependencies(particle2, pathsOut);
|
|
|
|
}
|
2015-09-10 20:30:35 +00:00
|
|
|
};
|
|
|
|
|
2018-02-22 07:24:51 +00:00
|
|
|
struct PlayerHintParameters : BigDNA
|
2015-09-10 20:30:35 +00:00
|
|
|
{
|
2018-02-22 07:24:51 +00:00
|
|
|
AT_DECL_DNA_YAML
|
2015-09-10 20:30:35 +00:00
|
|
|
Value<atUint32> propertyCount;
|
|
|
|
Value<bool> unknown1;
|
|
|
|
Value<bool> unknown2;
|
2017-07-28 06:56:23 +00:00
|
|
|
Value<bool> extendTargetDistance;
|
2015-09-10 20:30:35 +00:00
|
|
|
Value<bool> unknown4;
|
|
|
|
Value<bool> unknown5;
|
|
|
|
Value<bool> unknown6;
|
|
|
|
Value<bool> unknown7;
|
|
|
|
Value<bool> unknown8;
|
|
|
|
Value<bool> unknown9;
|
|
|
|
Value<bool> unknown10;
|
|
|
|
Value<bool> unknown11;
|
|
|
|
Value<bool> unknown12;
|
|
|
|
Value<bool> unknown13;
|
|
|
|
Value<bool> unknown14;
|
|
|
|
Value<bool> unknown15;
|
|
|
|
};
|
|
|
|
|
2018-02-22 07:24:51 +00:00
|
|
|
struct ScannableParameters : BigDNA
|
2015-09-10 20:30:35 +00:00
|
|
|
{
|
2018-02-22 07:24:51 +00:00
|
|
|
AT_DECL_DNA_YAML
|
2015-09-10 20:30:35 +00:00
|
|
|
Value<atUint32> propertyCount;
|
|
|
|
UniqueID32 scanId;
|
2015-10-27 00:19:03 +00:00
|
|
|
|
|
|
|
void nameIDs(PAKRouter<PAKBridge>& pakRouter, const std::string& name) const
|
|
|
|
{
|
|
|
|
if (scanId)
|
|
|
|
{
|
|
|
|
PAK::Entry* scanEnt = (PAK::Entry*)pakRouter.lookupEntry(scanId);
|
|
|
|
scanEnt->name = name + "_scan";
|
|
|
|
}
|
|
|
|
}
|
2016-10-02 22:41:36 +00:00
|
|
|
|
|
|
|
void depIDs(std::vector<hecl::ProjectPath>& pathsOut) const
|
|
|
|
{
|
|
|
|
g_curSpec->flattenDependencies(scanId, pathsOut);
|
|
|
|
}
|
|
|
|
|
|
|
|
void scanIDs(std::vector<Scan>& scansOut) const
|
|
|
|
{
|
|
|
|
scansOut.emplace_back(scanId);
|
|
|
|
}
|
2015-09-10 20:30:35 +00:00
|
|
|
};
|
|
|
|
|
2018-02-22 07:24:51 +00:00
|
|
|
struct VisorParameters : BigDNA
|
2015-09-10 20:30:35 +00:00
|
|
|
{
|
2018-02-22 07:24:51 +00:00
|
|
|
AT_DECL_DNA_YAML
|
2015-09-10 20:30:35 +00:00
|
|
|
Value<atUint32> propertyCount;
|
|
|
|
Value<bool> unknown1;
|
|
|
|
Value<bool> unknown2;
|
|
|
|
Value<atUint32> unknown3;
|
|
|
|
};
|
|
|
|
|
2018-02-22 07:24:51 +00:00
|
|
|
struct PlayerParameters : BigDNA
|
2016-04-18 01:58:13 +00:00
|
|
|
{
|
2018-02-22 07:24:51 +00:00
|
|
|
AT_DECL_DNA_YAML
|
2016-04-18 01:58:13 +00:00
|
|
|
Value<atUint32> propertyCount;
|
2018-02-25 08:23:27 +00:00
|
|
|
Vector<bool, AT_DNA_COUNT(propertyCount)> bools;
|
2016-04-18 01:58:13 +00:00
|
|
|
};
|
|
|
|
|
2018-02-22 07:24:51 +00:00
|
|
|
struct ActorParameters : BigDNA
|
2015-09-10 20:30:35 +00:00
|
|
|
{
|
2018-02-22 07:24:51 +00:00
|
|
|
AT_DECL_DNA_YAML
|
2015-09-10 20:30:35 +00:00
|
|
|
Value<atUint32> propertyCount;
|
|
|
|
LightParameters lightParameters;
|
|
|
|
ScannableParameters scannableParameters;
|
|
|
|
UniqueID32 xrayModel;
|
2016-04-07 03:40:25 +00:00
|
|
|
UniqueID32 xraySkin;
|
2015-09-10 20:30:35 +00:00
|
|
|
UniqueID32 thermalModel;
|
2016-04-07 03:40:25 +00:00
|
|
|
UniqueID32 thermalSkin;
|
2018-06-02 06:06:25 +00:00
|
|
|
Value<bool> globalTimeProvider;
|
|
|
|
Value<float> fadeInTime;
|
|
|
|
Value<float> fadeOutTime;
|
2015-09-10 20:30:35 +00:00
|
|
|
VisorParameters visorParameters;
|
|
|
|
Value<bool> thermalHeat;
|
2018-06-02 06:06:25 +00:00
|
|
|
Value<bool> renderUnsorted;
|
|
|
|
Value<bool> noSortThermal;
|
|
|
|
Value<float> thermalMag;
|
2015-10-27 00:19:03 +00:00
|
|
|
|
|
|
|
void addCMDLRigPairs(std::unordered_map<UniqueID32, std::pair<UniqueID32, UniqueID32>>& addTo,
|
|
|
|
const UniqueID32& cinf) const
|
|
|
|
{
|
|
|
|
if (xrayModel && xraySkin)
|
|
|
|
addTo[xrayModel] = std::make_pair(xraySkin, cinf);
|
|
|
|
if (thermalModel && thermalSkin)
|
|
|
|
addTo[thermalModel] = std::make_pair(thermalSkin, cinf);
|
|
|
|
}
|
|
|
|
|
|
|
|
void nameIDs(PAKRouter<PAKBridge>& pakRouter, const std::string& name) const
|
|
|
|
{
|
|
|
|
scannableParameters.nameIDs(pakRouter, name);
|
|
|
|
if (xrayModel)
|
|
|
|
{
|
|
|
|
PAK::Entry* xmEnt = (PAK::Entry*)pakRouter.lookupEntry(xrayModel);
|
|
|
|
xmEnt->name = name + "_xraymodel";
|
|
|
|
}
|
|
|
|
if (xraySkin)
|
|
|
|
{
|
|
|
|
PAK::Entry* xsEnt = (PAK::Entry*)pakRouter.lookupEntry(xraySkin);
|
|
|
|
xsEnt->name = name + "_xrayskin";
|
|
|
|
}
|
|
|
|
if (thermalModel)
|
|
|
|
{
|
|
|
|
PAK::Entry* xmEnt = (PAK::Entry*)pakRouter.lookupEntry(thermalModel);
|
|
|
|
xmEnt->name = name + "_thermalmodel";
|
|
|
|
}
|
|
|
|
if (thermalSkin)
|
|
|
|
{
|
|
|
|
PAK::Entry* xsEnt = (PAK::Entry*)pakRouter.lookupEntry(thermalSkin);
|
|
|
|
xsEnt->name = name + "_thermalskin";
|
|
|
|
}
|
|
|
|
}
|
2016-10-02 22:41:36 +00:00
|
|
|
|
2018-05-08 02:11:07 +00:00
|
|
|
void depIDs(std::vector<hecl::ProjectPath>& pathsOut,
|
|
|
|
std::vector<hecl::ProjectPath>& lazyOut) const
|
2016-10-02 22:41:36 +00:00
|
|
|
{
|
2018-05-08 02:11:07 +00:00
|
|
|
scannableParameters.depIDs(lazyOut);
|
2016-10-02 22:41:36 +00:00
|
|
|
g_curSpec->flattenDependencies(xrayModel, pathsOut);
|
|
|
|
g_curSpec->flattenDependencies(xraySkin, pathsOut);
|
|
|
|
g_curSpec->flattenDependencies(thermalModel, pathsOut);
|
|
|
|
g_curSpec->flattenDependencies(thermalSkin, pathsOut);
|
|
|
|
}
|
|
|
|
|
|
|
|
void scanIDs(std::vector<Scan>& scansOut) const
|
|
|
|
{
|
|
|
|
scannableParameters.scanIDs(scansOut);
|
|
|
|
}
|
2015-09-10 20:30:35 +00:00
|
|
|
};
|
2017-08-20 05:23:22 +00:00
|
|
|
|
2018-02-22 07:24:51 +00:00
|
|
|
struct BeamInfo : BigDNA
|
2017-08-20 05:23:22 +00:00
|
|
|
{
|
2018-02-22 07:24:51 +00:00
|
|
|
AT_DECL_DNA_YAML
|
2017-08-20 05:23:22 +00:00
|
|
|
Value<atUint32> propertyCount;
|
|
|
|
Value<atUint32> unknown1;
|
|
|
|
UniqueID32 particle1;
|
|
|
|
UniqueID32 particle2;
|
|
|
|
UniqueID32 texture1;
|
|
|
|
UniqueID32 texture2;
|
|
|
|
Value<float> unknown2;
|
|
|
|
Value<float> unknown3;
|
|
|
|
Value<float> unknown4;
|
|
|
|
Value<float> unknown5;
|
|
|
|
Value<float> unknown6;
|
|
|
|
Value<float> unknown7;
|
|
|
|
Value<float> unknown8;
|
|
|
|
Value<float> unknown9;
|
|
|
|
Value<float> unknown10;
|
|
|
|
DNAColor unknown11;
|
|
|
|
DNAColor unknown12;
|
|
|
|
|
|
|
|
void nameIDs(PAKRouter<PAKBridge>& 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";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void depIDs(std::vector<hecl::ProjectPath>& pathsOut) const
|
|
|
|
{
|
|
|
|
g_curSpec->flattenDependencies(particle1, pathsOut);
|
|
|
|
g_curSpec->flattenDependencies(particle2, pathsOut);
|
|
|
|
g_curSpec->flattenDependencies(texture1, pathsOut);
|
|
|
|
g_curSpec->flattenDependencies(texture2, pathsOut);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2015-09-10 20:30:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|