metaforce/DataSpec/DNAMP1/Tweaks/CTweakBall.cpp

936 lines
38 KiB
C++

#include "CTweakBall.hpp"
namespace DataSpec
{
namespace DNAMP1
{
void CTweakBall::read(athena::io::IStreamReader& __dna_reader)
{
/* x4_maxTranslationAcceleration[0] */
x4_maxTranslationAcceleration[0] = __dna_reader.readFloatBig();
/* x4_maxTranslationAcceleration[1] */
x4_maxTranslationAcceleration[1] = __dna_reader.readFloatBig();
/* x4_maxTranslationAcceleration[2] */
x4_maxTranslationAcceleration[2] = __dna_reader.readFloatBig();
/* x4_maxTranslationAcceleration[3] */
x4_maxTranslationAcceleration[3] = __dna_reader.readFloatBig();
/* x4_maxTranslationAcceleration[4] */
x4_maxTranslationAcceleration[4] = __dna_reader.readFloatBig();
/* x4_maxTranslationAcceleration[5] */
x4_maxTranslationAcceleration[5] = __dna_reader.readFloatBig();
/* x4_maxTranslationAcceleration[6] */
x4_maxTranslationAcceleration[6] = __dna_reader.readFloatBig();
/* x4_maxTranslationAcceleration[7] */
x4_maxTranslationAcceleration[7] = __dna_reader.readFloatBig();
/* x24_translationFriction[0] */
x24_translationFriction[0] = __dna_reader.readFloatBig();
/* x24_translationFriction[1] */
x24_translationFriction[1] = __dna_reader.readFloatBig();
/* x24_translationFriction[2] */
x24_translationFriction[2] = __dna_reader.readFloatBig();
/* x24_translationFriction[3] */
x24_translationFriction[3] = __dna_reader.readFloatBig();
/* x24_translationFriction[4] */
x24_translationFriction[4] = __dna_reader.readFloatBig();
/* x24_translationFriction[5] */
x24_translationFriction[5] = __dna_reader.readFloatBig();
/* x24_translationFriction[6] */
x24_translationFriction[6] = __dna_reader.readFloatBig();
/* x24_translationFriction[7] */
x24_translationFriction[7] = __dna_reader.readFloatBig();
/* x44_translationMaxSpeed[0] */
x44_translationMaxSpeed[0] = __dna_reader.readFloatBig();
/* x44_translationMaxSpeed[1] */
x44_translationMaxSpeed[1] = __dna_reader.readFloatBig();
/* x44_translationMaxSpeed[2] */
x44_translationMaxSpeed[2] = __dna_reader.readFloatBig();
/* x44_translationMaxSpeed[3] */
x44_translationMaxSpeed[3] = __dna_reader.readFloatBig();
/* x44_translationMaxSpeed[4] */
x44_translationMaxSpeed[4] = __dna_reader.readFloatBig();
/* x44_translationMaxSpeed[5] */
x44_translationMaxSpeed[5] = __dna_reader.readFloatBig();
/* x44_translationMaxSpeed[6] */
x44_translationMaxSpeed[6] = __dna_reader.readFloatBig();
/* x44_translationMaxSpeed[7] */
x44_translationMaxSpeed[7] = __dna_reader.readFloatBig();
/* x64_ */
x64_ = __dna_reader.readFloatBig();
/* x68_ */
x68_ = __dna_reader.readFloatBig();
/* x6c_ */
x6c_ = __dna_reader.readFloatBig();
/* x70_ */
x70_ = __dna_reader.readFloatBig();
/* xc4_ballForwardBrakingAcceleration[0] */
xc4_ballForwardBrakingAcceleration[0] = __dna_reader.readFloatBig();
/* xc4_ballForwardBrakingAcceleration[1] */
xc4_ballForwardBrakingAcceleration[1] = __dna_reader.readFloatBig();
/* xc4_ballForwardBrakingAcceleration[2] */
xc4_ballForwardBrakingAcceleration[2] = __dna_reader.readFloatBig();
/* xc4_ballForwardBrakingAcceleration[3] */
xc4_ballForwardBrakingAcceleration[3] = __dna_reader.readFloatBig();
/* xc4_ballForwardBrakingAcceleration[4] */
xc4_ballForwardBrakingAcceleration[4] = __dna_reader.readFloatBig();
/* xc4_ballForwardBrakingAcceleration[5] */
xc4_ballForwardBrakingAcceleration[5] = __dna_reader.readFloatBig();
/* xc4_ballForwardBrakingAcceleration[6] */
xc4_ballForwardBrakingAcceleration[6] = __dna_reader.readFloatBig();
/* xc4_ballForwardBrakingAcceleration[7] */
xc4_ballForwardBrakingAcceleration[7] = __dna_reader.readFloatBig();
/* xe4_ballGravity */
xe4_ballGravity = __dna_reader.readFloatBig();
/* xe8_ballWaterGravity */
xe8_ballWaterGravity = __dna_reader.readFloatBig();
/* x14c_ */
x14c_ = __dna_reader.readFloatBig();
/* x150_ */
x150_ = __dna_reader.readFloatBig();
/* x158_ */
x158_ = __dna_reader.readFloatBig();
/* x1dc_minimumAlignmentSpeed */
x1dc_minimumAlignmentSpeed = __dna_reader.readFloatBig();
/* x1e0_tireness */
x1e0_tireness = __dna_reader.readFloatBig();
/* x1ec_maxLeanAngle */
x1ec_maxLeanAngle = __dna_reader.readFloatBig();
/* x1f0_tireToMarbleThresholdSpeed */
x1f0_tireToMarbleThresholdSpeed = __dna_reader.readFloatBig();
/* x1f4_marbleToTireThresholdSpeed */
x1f4_marbleToTireThresholdSpeed = __dna_reader.readFloatBig();
/* x1f8_forceToLeanGain */
x1f8_forceToLeanGain = __dna_reader.readFloatBig();
/* x1fc_leanTrackingGain */
x1fc_leanTrackingGain = __dna_reader.readFloatBig();
/* x74_ */
x74_ = __dna_reader.readFloatBig();
/* x78_ */
x78_ = __dna_reader.readVec3fBig();
/* x84_ */
x84_ = __dna_reader.readFloatBig();
/* x88_ */
x88_ = __dna_reader.readFloatBig();
/* x8c_ */
x8c_ = __dna_reader.readFloatBig();
/* x90_ */
x90_ = __dna_reader.readFloatBig();
/* x94_ */
x94_ = __dna_reader.readFloatBig();
/* x98_ */
x98_ = __dna_reader.readFloatBig();
/* x9c_ */
x9c_ = __dna_reader.readFloatBig();
/* xa0_ */
xa0_ = __dna_reader.readFloatBig();
/* xa4_ */
xa4_ = __dna_reader.readFloatBig();
/* xa8_ */
xa8_ = __dna_reader.readFloatBig();
/* xac_ */
xac_ = __dna_reader.readFloatBig();
/* xb0_ */
xb0_ = __dna_reader.readFloatBig();
/* xb4_ */
xb4_ = __dna_reader.readFloatBig();
/* xb8_ */
xb8_ = __dna_reader.readFloatBig();
/* xbc_ */
xbc_ = __dna_reader.readFloatBig();
/* xc0_ */
xc0_ = __dna_reader.readFloatBig();
/* x154_ */
x154_ = __dna_reader.readFloatBig();
/* x15c_ */
x15c_ = __dna_reader.readFloatBig();
/* x160_ */
x160_ = __dna_reader.readFloatBig();
/* x164_ */
x164_ = __dna_reader.readFloatBig();
/* x168_ */
x168_ = __dna_reader.readFloatBig();
/* x16c_ */
x16c_ = __dna_reader.readFloatBig();
/* x170_ */
x170_ = __dna_reader.readFloatBig();
/* x174_ */
x174_ = __dna_reader.readFloatBig();
/* x178_ */
x178_ = __dna_reader.readFloatBig();
/* x17c_ */
x17c_ = __dna_reader.readFloatBig();
/* x180_ */
x180_ = __dna_reader.readFloatBig();
/* x184_ */
x184_ = __dna_reader.readFloatBig();
/* x188_ */
x188_ = __dna_reader.readFloatBig();
/* x18c_ */
x18c_ = __dna_reader.readVec3fBig();
/* x198_ */
x198_ = __dna_reader.readFloatBig();
/* x19c_ */
x19c_ = __dna_reader.readFloatBig();
/* x1a0_ */
x1a0_ = __dna_reader.readFloatBig();
/* x1a4_ */
x1a4_ = __dna_reader.readFloatBig();
/* x1a8_ */
x1a8_ = __dna_reader.readFloatBig();
/* x1ac_ */
x1ac_ = __dna_reader.readFloatBig();
/* x1b0_ */
x1b0_ = __dna_reader.readFloatBig();
/* x1b4_ */
x1b4_ = __dna_reader.readFloatBig();
/* x1b8_ */
x1b8_ = __dna_reader.readVec3fBig();
/* x1c4_ */
x1c4_ = __dna_reader.readFloatBig();
/* x1c8_ */
x1c8_ = __dna_reader.readFloatBig();
/* x1cc_ */
x1cc_ = __dna_reader.readFloatBig();
/* x1d0_ballCameraControlDistance */
x1d0_ballCameraControlDistance = __dna_reader.readFloatBig();
/* x1d4_ */
x1d4_ = __dna_reader.readFloatBig();
/* x1d8_ */
x1d8_ = __dna_reader.readFloatBig();
/* x1e4_leftStickDivisor */
x1e4_leftStickDivisor = __dna_reader.readFloatBig();
/* x1e8_rightStickDivisor */
x1e8_rightStickDivisor = __dna_reader.readFloatBig();
/* x200_ */
x200_ = __dna_reader.readFloatBig();
/* x204_ballTouchRadius */
x204_ballTouchRadius = __dna_reader.readFloatBig();
/* x20c_boostBallDrainTime */
x20c_boostBallDrainTime = __dna_reader.readFloatBig();
/* x218_boostBallMinChargeTime */
x218_boostBallMinChargeTime = __dna_reader.readFloatBig();
/* x21c_boostBallMinRelativeSpeedForDamage */
x21c_boostBallMinRelativeSpeedForDamage = __dna_reader.readFloatBig();
/* x220_boostBallChargeTime0 */
x220_boostBallChargeTime0 = __dna_reader.readFloatBig();
/* x224_boostBallChargeTime1 */
x224_boostBallChargeTime1 = __dna_reader.readFloatBig();
/* x210_boostBallMaxChargeTime */
x228_boostBallChargeTime2 = x210_boostBallMaxChargeTime = __dna_reader.readFloatBig();
/* x22c_boostBallIncrementalSpeed0 */
x22c_boostBallIncrementalSpeed0 = __dna_reader.readFloatBig();
/* x230_boostBallIncrementalSpeed1 */
x230_boostBallIncrementalSpeed1 = __dna_reader.readFloatBig();
/* x234_boostBallIncrementalSpeed2 */
x234_boostBallIncrementalSpeed2 = __dna_reader.readFloatBig();
}
void CTweakBall::write(athena::io::IStreamWriter& __dna_writer) const
{
/* x4_maxTranslationAcceleration[0] */
__dna_writer.writeFloatBig(x4_maxTranslationAcceleration[0]);
/* x4_maxTranslationAcceleration[1] */
__dna_writer.writeFloatBig(x4_maxTranslationAcceleration[1]);
/* x4_maxTranslationAcceleration[2] */
__dna_writer.writeFloatBig(x4_maxTranslationAcceleration[2]);
/* x4_maxTranslationAcceleration[3] */
__dna_writer.writeFloatBig(x4_maxTranslationAcceleration[3]);
/* x4_maxTranslationAcceleration[4] */
__dna_writer.writeFloatBig(x4_maxTranslationAcceleration[4]);
/* x4_maxTranslationAcceleration[5] */
__dna_writer.writeFloatBig(x4_maxTranslationAcceleration[5]);
/* x4_maxTranslationAcceleration[6] */
__dna_writer.writeFloatBig(x4_maxTranslationAcceleration[6]);
/* x4_maxTranslationAcceleration[7] */
__dna_writer.writeFloatBig(x4_maxTranslationAcceleration[7]);
/* x24_translationFriction[0] */
__dna_writer.writeFloatBig(x24_translationFriction[0]);
/* x24_translationFriction[1] */
__dna_writer.writeFloatBig(x24_translationFriction[1]);
/* x24_translationFriction[2] */
__dna_writer.writeFloatBig(x24_translationFriction[2]);
/* x24_translationFriction[3] */
__dna_writer.writeFloatBig(x24_translationFriction[3]);
/* x24_translationFriction[4] */
__dna_writer.writeFloatBig(x24_translationFriction[4]);
/* x24_translationFriction[5] */
__dna_writer.writeFloatBig(x24_translationFriction[5]);
/* x24_translationFriction[6] */
__dna_writer.writeFloatBig(x24_translationFriction[6]);
/* x24_translationFriction[7] */
__dna_writer.writeFloatBig(x24_translationFriction[7]);
/* x44_translationMaxSpeed[0] */
__dna_writer.writeFloatBig(x44_translationMaxSpeed[0]);
/* x44_translationMaxSpeed[1] */
__dna_writer.writeFloatBig(x44_translationMaxSpeed[1]);
/* x44_translationMaxSpeed[2] */
__dna_writer.writeFloatBig(x44_translationMaxSpeed[2]);
/* x44_translationMaxSpeed[3] */
__dna_writer.writeFloatBig(x44_translationMaxSpeed[3]);
/* x44_translationMaxSpeed[4] */
__dna_writer.writeFloatBig(x44_translationMaxSpeed[4]);
/* x44_translationMaxSpeed[5] */
__dna_writer.writeFloatBig(x44_translationMaxSpeed[5]);
/* x44_translationMaxSpeed[6] */
__dna_writer.writeFloatBig(x44_translationMaxSpeed[6]);
/* x44_translationMaxSpeed[7] */
__dna_writer.writeFloatBig(x44_translationMaxSpeed[7]);
/* x64_ */
__dna_writer.writeFloatBig(x64_);
/* x68_ */
__dna_writer.writeFloatBig(x68_);
/* x6c_ */
__dna_writer.writeFloatBig(x6c_);
/* x70_ */
__dna_writer.writeFloatBig(x70_);
/* xc4_ballForwardBrakingAcceleration[0] */
__dna_writer.writeFloatBig(xc4_ballForwardBrakingAcceleration[0]);
/* xc4_ballForwardBrakingAcceleration[1] */
__dna_writer.writeFloatBig(xc4_ballForwardBrakingAcceleration[1]);
/* xc4_ballForwardBrakingAcceleration[2] */
__dna_writer.writeFloatBig(xc4_ballForwardBrakingAcceleration[2]);
/* xc4_ballForwardBrakingAcceleration[3] */
__dna_writer.writeFloatBig(xc4_ballForwardBrakingAcceleration[3]);
/* xc4_ballForwardBrakingAcceleration[4] */
__dna_writer.writeFloatBig(xc4_ballForwardBrakingAcceleration[4]);
/* xc4_ballForwardBrakingAcceleration[5] */
__dna_writer.writeFloatBig(xc4_ballForwardBrakingAcceleration[5]);
/* xc4_ballForwardBrakingAcceleration[6] */
__dna_writer.writeFloatBig(xc4_ballForwardBrakingAcceleration[6]);
/* xc4_ballForwardBrakingAcceleration[7] */
__dna_writer.writeFloatBig(xc4_ballForwardBrakingAcceleration[7]);
/* xe4_ballGravity */
__dna_writer.writeFloatBig(xe4_ballGravity);
/* xe8_ballWaterGravity */
__dna_writer.writeFloatBig(xe8_ballWaterGravity);
/* x14c_ */
__dna_writer.writeFloatBig(x14c_);
/* x150_ */
__dna_writer.writeFloatBig(x150_);
/* x158_ */
__dna_writer.writeFloatBig(x158_);
/* x1dc_minimumAlignmentSpeed */
__dna_writer.writeFloatBig(x1dc_minimumAlignmentSpeed);
/* x1e0_tireness */
__dna_writer.writeFloatBig(x1e0_tireness);
/* x1ec_maxLeanAngle */
__dna_writer.writeFloatBig(x1ec_maxLeanAngle);
/* x1f0_tireToMarbleThresholdSpeed */
__dna_writer.writeFloatBig(x1f0_tireToMarbleThresholdSpeed);
/* x1f4_marbleToTireThresholdSpeed */
__dna_writer.writeFloatBig(x1f4_marbleToTireThresholdSpeed);
/* x1f8_forceToLeanGain */
__dna_writer.writeFloatBig(x1f8_forceToLeanGain);
/* x1fc_leanTrackingGain */
__dna_writer.writeFloatBig(x1fc_leanTrackingGain);
/* x74_ */
__dna_writer.writeFloatBig(x74_);
/* x78_ */
__dna_writer.writeVec3fBig(x78_);
/* x84_ */
__dna_writer.writeFloatBig(x84_);
/* x88_ */
__dna_writer.writeFloatBig(x88_);
/* x8c_ */
__dna_writer.writeFloatBig(x8c_);
/* x90_ */
__dna_writer.writeFloatBig(x90_);
/* x94_ */
__dna_writer.writeFloatBig(x94_);
/* x98_ */
__dna_writer.writeFloatBig(x98_);
/* x9c_ */
__dna_writer.writeFloatBig(x9c_);
/* xa0_ */
__dna_writer.writeFloatBig(xa0_);
/* xa4_ */
__dna_writer.writeFloatBig(xa4_);
/* xa8_ */
__dna_writer.writeFloatBig(xa8_);
/* xac_ */
__dna_writer.writeFloatBig(xac_);
/* xb0_ */
__dna_writer.writeFloatBig(xb0_);
/* xb4_ */
__dna_writer.writeFloatBig(xb4_);
/* xb8_ */
__dna_writer.writeFloatBig(xb8_);
/* xbc_ */
__dna_writer.writeFloatBig(xbc_);
/* xc0_ */
__dna_writer.writeFloatBig(xc0_);
/* x154_ */
__dna_writer.writeFloatBig(x154_);
/* x15c_ */
__dna_writer.writeFloatBig(x15c_);
/* x160_ */
__dna_writer.writeFloatBig(x160_);
/* x164_ */
__dna_writer.writeFloatBig(x164_);
/* x168_ */
__dna_writer.writeFloatBig(x168_);
/* x16c_ */
__dna_writer.writeFloatBig(x16c_);
/* x170_ */
__dna_writer.writeFloatBig(x170_);
/* x174_ */
__dna_writer.writeFloatBig(x174_);
/* x178_ */
__dna_writer.writeFloatBig(x178_);
/* x17c_ */
__dna_writer.writeFloatBig(x17c_);
/* x180_ */
__dna_writer.writeFloatBig(x180_);
/* x184_ */
__dna_writer.writeFloatBig(x184_);
/* x188_ */
__dna_writer.writeFloatBig(x188_);
/* x18c_ */
__dna_writer.writeVec3fBig(x18c_);
/* x198_ */
__dna_writer.writeFloatBig(x198_);
/* x19c_ */
__dna_writer.writeFloatBig(x19c_);
/* x1a0_ */
__dna_writer.writeFloatBig(x1a0_);
/* x1a4_ */
__dna_writer.writeFloatBig(x1a4_);
/* x1a8_ */
__dna_writer.writeFloatBig(x1a8_);
/* x1ac_ */
__dna_writer.writeFloatBig(x1ac_);
/* x1b0_ */
__dna_writer.writeFloatBig(x1b0_);
/* x1b4_ */
__dna_writer.writeFloatBig(x1b4_);
/* x1b8_ */
__dna_writer.writeVec3fBig(x1b8_);
/* x1c4_ */
__dna_writer.writeFloatBig(x1c4_);
/* x1c8_ */
__dna_writer.writeFloatBig(x1c8_);
/* x1cc_ */
__dna_writer.writeFloatBig(x1cc_);
/* x1d0_ballCameraControlDistance */
__dna_writer.writeFloatBig(x1d0_ballCameraControlDistance);
/* x1d4_ */
__dna_writer.writeFloatBig(x1d4_);
/* x1d8_ */
__dna_writer.writeFloatBig(x1d8_);
/* x1e4_leftStickDivisor */
__dna_writer.writeFloatBig(x1e4_leftStickDivisor);
/* x1e8_rightStickDivisor */
__dna_writer.writeFloatBig(x1e8_rightStickDivisor);
/* x200_ */
__dna_writer.writeFloatBig(x200_);
/* x204_ballTouchRadius */
__dna_writer.writeFloatBig(x204_ballTouchRadius);
/* x20c_boostBallDrainTime */
__dna_writer.writeFloatBig(x20c_boostBallDrainTime);
/* x218_boostBallMinChargeTime */
__dna_writer.writeFloatBig(x218_boostBallMinChargeTime);
/* x21c_boostBallMinRelativeSpeedForDamage */
__dna_writer.writeFloatBig(x21c_boostBallMinRelativeSpeedForDamage);
/* x220_boostBallChargeTime0 */
__dna_writer.writeFloatBig(x220_boostBallChargeTime0);
/* x224_boostBallChargeTime1 */
__dna_writer.writeFloatBig(x224_boostBallChargeTime1);
/* x210_boostBallMaxChargeTime */
__dna_writer.writeFloatBig(x210_boostBallMaxChargeTime);
/* x22c_boostBallIncrementalSpeed0 */
__dna_writer.writeFloatBig(x22c_boostBallIncrementalSpeed0);
/* x230_boostBallIncrementalSpeed1 */
__dna_writer.writeFloatBig(x230_boostBallIncrementalSpeed1);
/* x234_boostBallIncrementalSpeed2 */
__dna_writer.writeFloatBig(x234_boostBallIncrementalSpeed2);
}
void CTweakBall::read(athena::io::YAMLDocReader& __dna_docin)
{
/* x4_maxTranslationAcceleration */
size_t __x4_Count;
if (auto v = __dna_docin.enterSubVector("x4_maxTranslationAcceleration", __x4_Count))
{
/* x4_maxTranslationAcceleration[0] */
x4_maxTranslationAcceleration[0] = __dna_docin.readFloat("x4_maxTranslationAcceleration");
/* x4_maxTranslationAcceleration[1] */
x4_maxTranslationAcceleration[1] = __dna_docin.readFloat("x4_maxTranslationAcceleration");
/* x4_maxTranslationAcceleration[2] */
x4_maxTranslationAcceleration[2] = __dna_docin.readFloat("x4_maxTranslationAcceleration");
/* x4_maxTranslationAcceleration[3] */
x4_maxTranslationAcceleration[3] = __dna_docin.readFloat("x4_maxTranslationAcceleration");
/* x4_maxTranslationAcceleration[4] */
x4_maxTranslationAcceleration[4] = __dna_docin.readFloat("x4_maxTranslationAcceleration");
/* x4_maxTranslationAcceleration[5] */
x4_maxTranslationAcceleration[5] = __dna_docin.readFloat("x4_maxTranslationAcceleration");
/* x4_maxTranslationAcceleration[6] */
x4_maxTranslationAcceleration[6] = __dna_docin.readFloat("x4_maxTranslationAcceleration");
/* x4_maxTranslationAcceleration[7] */
x4_maxTranslationAcceleration[7] = __dna_docin.readFloat("x4_maxTranslationAcceleration");
}
/* x24_translationFriction */
size_t __x24_Count;
if (auto v = __dna_docin.enterSubVector("x24_translationFriction", __x24_Count))
{
/* x24_translationFriction[0] */
x24_translationFriction[0] = __dna_docin.readFloat("x24_translationFriction");
/* x24_translationFriction[1] */
x24_translationFriction[1] = __dna_docin.readFloat("x24_translationFriction");
/* x24_translationFriction[2] */
x24_translationFriction[2] = __dna_docin.readFloat("x24_translationFriction");
/* x24_translationFriction[3] */
x24_translationFriction[3] = __dna_docin.readFloat("x24_translationFriction");
/* x24_translationFriction[4] */
x24_translationFriction[4] = __dna_docin.readFloat("x24_translationFriction");
/* x24_translationFriction[5] */
x24_translationFriction[5] = __dna_docin.readFloat("x24_translationFriction");
/* x24_translationFriction[6] */
x24_translationFriction[6] = __dna_docin.readFloat("x24_translationFriction");
/* x24_translationFriction[7] */
x24_translationFriction[7] = __dna_docin.readFloat("x24_translationFriction");
}
/* x44_translationMaxSpeed */
size_t __x44_Count;
if (auto v = __dna_docin.enterSubVector("x44_translationMaxSpeed", __x44_Count))
{
/* x44_translationMaxSpeed[0] */
x44_translationMaxSpeed[0] = __dna_docin.readFloat("x44_translationMaxSpeed");
/* x44_translationMaxSpeed[1] */
x44_translationMaxSpeed[1] = __dna_docin.readFloat("x44_translationMaxSpeed");
/* x44_translationMaxSpeed[2] */
x44_translationMaxSpeed[2] = __dna_docin.readFloat("x44_translationMaxSpeed");
/* x44_translationMaxSpeed[3] */
x44_translationMaxSpeed[3] = __dna_docin.readFloat("x44_translationMaxSpeed");
/* x44_translationMaxSpeed[4] */
x44_translationMaxSpeed[4] = __dna_docin.readFloat("x44_translationMaxSpeed");
/* x44_translationMaxSpeed[5] */
x44_translationMaxSpeed[5] = __dna_docin.readFloat("x44_translationMaxSpeed");
/* x44_translationMaxSpeed[6] */
x44_translationMaxSpeed[6] = __dna_docin.readFloat("x44_translationMaxSpeed");
/* x44_translationMaxSpeed[7] */
x44_translationMaxSpeed[7] = __dna_docin.readFloat("x44_translationMaxSpeed");
}
/* x64_ */
x64_ = __dna_docin.readFloat("x64_");
/* x68_ */
x68_ = __dna_docin.readFloat("x68_");
/* x6c_ */
x6c_ = __dna_docin.readFloat("x6c_");
/* x70_ */
x70_ = __dna_docin.readFloat("x70_");
/* xc4_ballForwardBrakingAcceleration */
size_t __xc4_Count;
if (auto v = __dna_docin.enterSubVector("xc4_ballForwardBrakingAcceleration", __xc4_Count))
{
/* xc4_ballForwardBrakingAcceleration[0] */
xc4_ballForwardBrakingAcceleration[0] = __dna_docin.readFloat("xc4_ballForwardBrakingAcceleration");
/* xc4_ballForwardBrakingAcceleration[1] */
xc4_ballForwardBrakingAcceleration[1] = __dna_docin.readFloat("xc4_ballForwardBrakingAcceleration");
/* xc4_ballForwardBrakingAcceleration[2] */
xc4_ballForwardBrakingAcceleration[2] = __dna_docin.readFloat("xc4_ballForwardBrakingAcceleration");
/* xc4_ballForwardBrakingAcceleration[3] */
xc4_ballForwardBrakingAcceleration[3] = __dna_docin.readFloat("xc4_ballForwardBrakingAcceleration");
/* xc4_ballForwardBrakingAcceleration[4] */
xc4_ballForwardBrakingAcceleration[4] = __dna_docin.readFloat("xc4_ballForwardBrakingAcceleration");
/* xc4_ballForwardBrakingAcceleration[5] */
xc4_ballForwardBrakingAcceleration[5] = __dna_docin.readFloat("xc4_ballForwardBrakingAcceleration");
/* xc4_ballForwardBrakingAcceleration[6] */
xc4_ballForwardBrakingAcceleration[6] = __dna_docin.readFloat("xc4_ballForwardBrakingAcceleration");
/* xc4_ballForwardBrakingAcceleration[7] */
xc4_ballForwardBrakingAcceleration[7] = __dna_docin.readFloat("xc4_ballForwardBrakingAcceleration");
}
/* xe4_ballGravity */
xe4_ballGravity = __dna_docin.readFloat("xe4_ballGravity");
/* xe8_ballWaterGravity */
xe8_ballWaterGravity = __dna_docin.readFloat("xe8_ballWaterGravity");
/* x14c_ */
x14c_ = __dna_docin.readFloat("x14c_");
/* x150_ */
x150_ = __dna_docin.readFloat("x150_");
/* x158_ */
x158_ = __dna_docin.readFloat("x158_");
/* x1dc_minimumAlignmentSpeed */
x1dc_minimumAlignmentSpeed = __dna_docin.readFloat("x1dc_minimumAlignmentSpeed");
/* x1e0_tireness */
x1e0_tireness = __dna_docin.readFloat("x1e0_tireness");
/* x1ec_maxLeanAngle */
x1ec_maxLeanAngle = __dna_docin.readFloat("x1ec_maxLeanAngle");
/* x1f0_tireToMarbleThresholdSpeed */
x1f0_tireToMarbleThresholdSpeed = __dna_docin.readFloat("x1f0_tireToMarbleThresholdSpeed");
/* x1f4_marbleToTireThresholdSpeed */
x1f4_marbleToTireThresholdSpeed = __dna_docin.readFloat("x1f4_marbleToTireThresholdSpeed");
/* x1f8_forceToLeanGain */
x1f8_forceToLeanGain = __dna_docin.readFloat("x1f8_forceToLeanGain");
/* x1fc_leanTrackingGain */
x1fc_leanTrackingGain = __dna_docin.readFloat("x1fc_leanTrackingGain");
/* x74_ */
x74_ = __dna_docin.readFloat("x74_");
/* x78_ */
x78_ = __dna_docin.readVec3f("x78_");
/* x84_ */
x84_ = __dna_docin.readFloat("x84_");
/* x88_ */
x88_ = __dna_docin.readFloat("x88_");
/* x8c_ */
x8c_ = __dna_docin.readFloat("x8c_");
/* x90_ */
x90_ = __dna_docin.readFloat("x90_");
/* x94_ */
x94_ = __dna_docin.readFloat("x94_");
/* x98_ */
x98_ = __dna_docin.readFloat("x98_");
/* x9c_ */
x9c_ = __dna_docin.readFloat("x9c_");
/* xa0_ */
xa0_ = __dna_docin.readFloat("xa0_");
/* xa4_ */
xa4_ = __dna_docin.readFloat("xa4_");
/* xa8_ */
xa8_ = __dna_docin.readFloat("xa8_");
/* xac_ */
xac_ = __dna_docin.readFloat("xac_");
/* xb0_ */
xb0_ = __dna_docin.readFloat("xb0_");
/* xb4_ */
xb4_ = __dna_docin.readFloat("xb4_");
/* xb8_ */
xb8_ = __dna_docin.readFloat("xb8_");
/* xbc_ */
xbc_ = __dna_docin.readFloat("xbc_");
/* xc0_ */
xc0_ = __dna_docin.readFloat("xc0_");
/* x154_ */
x154_ = __dna_docin.readFloat("x154_");
/* x15c_ */
x15c_ = __dna_docin.readFloat("x15c_");
/* x160_ */
x160_ = __dna_docin.readFloat("x160_");
/* x164_ */
x164_ = __dna_docin.readFloat("x164_");
/* x168_ */
x168_ = __dna_docin.readFloat("x168_");
/* x16c_ */
x16c_ = __dna_docin.readFloat("x16c_");
/* x170_ */
x170_ = __dna_docin.readFloat("x170_");
/* x174_ */
x174_ = __dna_docin.readFloat("x174_");
/* x178_ */
x178_ = __dna_docin.readFloat("x178_");
/* x17c_ */
x17c_ = __dna_docin.readFloat("x17c_");
/* x180_ */
x180_ = __dna_docin.readFloat("x180_");
/* x184_ */
x184_ = __dna_docin.readFloat("x184_");
/* x188_ */
x188_ = __dna_docin.readFloat("x188_");
/* x18c_ */
x18c_ = __dna_docin.readVec3f("x18c_");
/* x198_ */
x198_ = __dna_docin.readFloat("x198_");
/* x19c_ */
x19c_ = __dna_docin.readFloat("x19c_");
/* x1a0_ */
x1a0_ = __dna_docin.readFloat("x1a0_");
/* x1a4_ */
x1a4_ = __dna_docin.readFloat("x1a4_");
/* x1a8_ */
x1a8_ = __dna_docin.readFloat("x1a8_");
/* x1ac_ */
x1ac_ = __dna_docin.readFloat("x1ac_");
/* x1b0_ */
x1b0_ = __dna_docin.readFloat("x1b0_");
/* x1b4_ */
x1b4_ = __dna_docin.readFloat("x1b4_");
/* x1b8_ */
x1b8_ = __dna_docin.readVec3f("x1b8_");
/* x1c4_ */
x1c4_ = __dna_docin.readFloat("x1c4_");
/* x1c8_ */
x1c8_ = __dna_docin.readFloat("x1c8_");
/* x1cc_ */
x1cc_ = __dna_docin.readFloat("x1cc_");
/* x1d0_ballCameraControlDistance */
x1d0_ballCameraControlDistance = __dna_docin.readFloat("x1d0_ballCameraControlDistance");
/* x1d4_ */
x1d4_ = __dna_docin.readFloat("x1d4_");
/* x1d8_ */
x1d8_ = __dna_docin.readFloat("x1d8_");
/* x1e4_leftStickDivisor */
x1e4_leftStickDivisor = __dna_docin.readFloat("x1e4_leftStickDivisor");
/* x1e8_rightStickDivisor */
x1e8_rightStickDivisor = __dna_docin.readFloat("x1e8_rightStickDivisor");
/* x200_ */
x200_ = __dna_docin.readFloat("x200_");
/* x204_ballTouchRadius */
x204_ballTouchRadius = __dna_docin.readFloat("x204_ballTouchRadius");
/* x20c_boostBallDrainTime */
x20c_boostBallDrainTime = __dna_docin.readFloat("x20c_boostBallDrainTime");
/* x218_boostBallMinChargeTime */
x218_boostBallMinChargeTime = __dna_docin.readFloat("x218_boostBallMinChargeTime");
/* x21c_boostBallMinRelativeSpeedForDamage */
x21c_boostBallMinRelativeSpeedForDamage = __dna_docin.readFloat("x21c_boostBallMinRelativeSpeedForDamage");
/* x220_boostBallChargeTime0 */
x220_boostBallChargeTime0 = __dna_docin.readFloat("x220_boostBallChargeTime0");
/* x224_boostBallChargeTime1 */
x224_boostBallChargeTime1 = __dna_docin.readFloat("x224_boostBallChargeTime1");
/* x210_boostBallMaxChargeTime */
x228_boostBallChargeTime2 = x210_boostBallMaxChargeTime = __dna_docin.readFloat("x210_boostBallMaxChargeTime");
/* x22c_boostBallIncrementalSpeed0 */
x22c_boostBallIncrementalSpeed0 = __dna_docin.readFloat("x22c_boostBallIncrementalSpeed0");
/* x230_boostBallIncrementalSpeed1 */
x230_boostBallIncrementalSpeed1 = __dna_docin.readFloat("x230_boostBallIncrementalSpeed1");
/* x234_boostBallIncrementalSpeed2 */
x234_boostBallIncrementalSpeed2 = __dna_docin.readFloat("x234_boostBallIncrementalSpeed2");
}
void CTweakBall::write(athena::io::YAMLDocWriter& __dna_docout) const
{
/* x4_maxTranslationAcceleration */
if (auto v = __dna_docout.enterSubVector("x4_maxTranslationAcceleration"))
{
/* x4_maxTranslationAcceleration[0] */
__dna_docout.writeFloat("x4_maxTranslationAcceleration", x4_maxTranslationAcceleration[0]);
/* x4_maxTranslationAcceleration[1] */
__dna_docout.writeFloat("x4_maxTranslationAcceleration", x4_maxTranslationAcceleration[1]);
/* x4_maxTranslationAcceleration[2] */
__dna_docout.writeFloat("x4_maxTranslationAcceleration", x4_maxTranslationAcceleration[2]);
/* x4_maxTranslationAcceleration[3] */
__dna_docout.writeFloat("x4_maxTranslationAcceleration", x4_maxTranslationAcceleration[3]);
/* x4_maxTranslationAcceleration[4] */
__dna_docout.writeFloat("x4_maxTranslationAcceleration", x4_maxTranslationAcceleration[4]);
/* x4_maxTranslationAcceleration[5] */
__dna_docout.writeFloat("x4_maxTranslationAcceleration", x4_maxTranslationAcceleration[5]);
/* x4_maxTranslationAcceleration[6] */
__dna_docout.writeFloat("x4_maxTranslationAcceleration", x4_maxTranslationAcceleration[6]);
/* x4_maxTranslationAcceleration[7] */
__dna_docout.writeFloat("x4_maxTranslationAcceleration", x4_maxTranslationAcceleration[7]);
}
/* x24_translationFriction */
if (auto v = __dna_docout.enterSubVector("x24_translationFriction"))
{
/* x24_translationFriction[0] */
__dna_docout.writeFloat("x24_translationFriction", x24_translationFriction[0]);
/* x24_translationFriction[1] */
__dna_docout.writeFloat("x24_translationFriction", x24_translationFriction[1]);
/* x24_translationFriction[2] */
__dna_docout.writeFloat("x24_translationFriction", x24_translationFriction[2]);
/* x24_translationFriction[3] */
__dna_docout.writeFloat("x24_translationFriction", x24_translationFriction[3]);
/* x24_translationFriction[4] */
__dna_docout.writeFloat("x24_translationFriction", x24_translationFriction[4]);
/* x24_translationFriction[5] */
__dna_docout.writeFloat("x24_translationFriction", x24_translationFriction[5]);
/* x24_translationFriction[6] */
__dna_docout.writeFloat("x24_translationFriction", x24_translationFriction[6]);
/* x24_translationFriction[7] */
__dna_docout.writeFloat("x24_translationFriction", x24_translationFriction[7]);
}
/* x44_translationMaxSpeed */
if (auto v = __dna_docout.enterSubVector("x44_translationMaxSpeed"))
{
/* x44_translationMaxSpeed[0] */
__dna_docout.writeFloat("x44_translationMaxSpeed", x44_translationMaxSpeed[0]);
/* x44_translationMaxSpeed[1] */
__dna_docout.writeFloat("x44_translationMaxSpeed", x44_translationMaxSpeed[1]);
/* x44_translationMaxSpeed[2] */
__dna_docout.writeFloat("x44_translationMaxSpeed", x44_translationMaxSpeed[2]);
/* x44_translationMaxSpeed[3] */
__dna_docout.writeFloat("x44_translationMaxSpeed", x44_translationMaxSpeed[3]);
/* x44_translationMaxSpeed[4] */
__dna_docout.writeFloat("x44_translationMaxSpeed", x44_translationMaxSpeed[4]);
/* x44_translationMaxSpeed[5] */
__dna_docout.writeFloat("x44_translationMaxSpeed", x44_translationMaxSpeed[5]);
/* x44_translationMaxSpeed[6] */
__dna_docout.writeFloat("x44_translationMaxSpeed", x44_translationMaxSpeed[6]);
/* x44_translationMaxSpeed[7] */
__dna_docout.writeFloat("x44_translationMaxSpeed", x44_translationMaxSpeed[7]);
}
/* x64_ */
__dna_docout.writeFloat("x64_", x64_);
/* x68_ */
__dna_docout.writeFloat("x68_", x68_);
/* x6c_ */
__dna_docout.writeFloat("x6c_", x6c_);
/* x70_ */
__dna_docout.writeFloat("x70_", x70_);
/* xc4_ballForwardBrakingAcceleration */
if (auto v = __dna_docout.enterSubVector("xc4_ballForwardBrakingAcceleration"))
{
/* xc4_ballForwardBrakingAcceleration[0] */
__dna_docout.writeFloat("xc4_ballForwardBrakingAcceleration", xc4_ballForwardBrakingAcceleration[0]);
/* xc4_ballForwardBrakingAcceleration[1] */
__dna_docout.writeFloat("xc4_ballForwardBrakingAcceleration", xc4_ballForwardBrakingAcceleration[1]);
/* xc4_ballForwardBrakingAcceleration[2] */
__dna_docout.writeFloat("xc4_ballForwardBrakingAcceleration", xc4_ballForwardBrakingAcceleration[2]);
/* xc4_ballForwardBrakingAcceleration[3] */
__dna_docout.writeFloat("xc4_ballForwardBrakingAcceleration", xc4_ballForwardBrakingAcceleration[3]);
/* xc4_ballForwardBrakingAcceleration[4] */
__dna_docout.writeFloat("xc4_ballForwardBrakingAcceleration", xc4_ballForwardBrakingAcceleration[4]);
/* xc4_ballForwardBrakingAcceleration[5] */
__dna_docout.writeFloat("xc4_ballForwardBrakingAcceleration", xc4_ballForwardBrakingAcceleration[5]);
/* xc4_ballForwardBrakingAcceleration[6] */
__dna_docout.writeFloat("xc4_ballForwardBrakingAcceleration", xc4_ballForwardBrakingAcceleration[6]);
/* xc4_ballForwardBrakingAcceleration[7] */
__dna_docout.writeFloat("xc4_ballForwardBrakingAcceleration", xc4_ballForwardBrakingAcceleration[7]);
}
/* xe4_ballGravity */
__dna_docout.writeFloat("xe4_ballGravity", xe4_ballGravity);
/* xe8_ballWaterGravity */
__dna_docout.writeFloat("xe8_ballWaterGravity", xe8_ballWaterGravity);
/* x14c_ */
__dna_docout.writeFloat("x14c_", x14c_);
/* x150_ */
__dna_docout.writeFloat("x150_", x150_);
/* x158_ */
__dna_docout.writeFloat("x158_", x158_);
/* x1dc_minimumAlignmentSpeed */
__dna_docout.writeFloat("x1dc_minimumAlignmentSpeed", x1dc_minimumAlignmentSpeed);
/* x1e0_tireness */
__dna_docout.writeFloat("x1e0_tireness", x1e0_tireness);
/* x1ec_maxLeanAngle */
__dna_docout.writeFloat("x1ec_maxLeanAngle", x1ec_maxLeanAngle);
/* x1f0_tireToMarbleThresholdSpeed */
__dna_docout.writeFloat("x1f0_tireToMarbleThresholdSpeed", x1f0_tireToMarbleThresholdSpeed);
/* x1f4_marbleToTireThresholdSpeed */
__dna_docout.writeFloat("x1f4_marbleToTireThresholdSpeed", x1f4_marbleToTireThresholdSpeed);
/* x1f8_forceToLeanGain */
__dna_docout.writeFloat("x1f8_forceToLeanGain", x1f8_forceToLeanGain);
/* x1fc_leanTrackingGain */
__dna_docout.writeFloat("x1fc_leanTrackingGain", x1fc_leanTrackingGain);
/* x74_ */
__dna_docout.writeFloat("x74_", x74_);
/* x78_ */
__dna_docout.writeVec3f("x78_", x78_);
/* x84_ */
__dna_docout.writeFloat("x84_", x84_);
/* x88_ */
__dna_docout.writeFloat("x88_", x88_);
/* x8c_ */
__dna_docout.writeFloat("x8c_", x8c_);
/* x90_ */
__dna_docout.writeFloat("x90_", x90_);
/* x94_ */
__dna_docout.writeFloat("x94_", x94_);
/* x98_ */
__dna_docout.writeFloat("x98_", x98_);
/* x9c_ */
__dna_docout.writeFloat("x9c_", x9c_);
/* xa0_ */
__dna_docout.writeFloat("xa0_", xa0_);
/* xa4_ */
__dna_docout.writeFloat("xa4_", xa4_);
/* xa8_ */
__dna_docout.writeFloat("xa8_", xa8_);
/* xac_ */
__dna_docout.writeFloat("xac_", xac_);
/* xb0_ */
__dna_docout.writeFloat("xb0_", xb0_);
/* xb4_ */
__dna_docout.writeFloat("xb4_", xb4_);
/* xb8_ */
__dna_docout.writeFloat("xb8_", xb8_);
/* xbc_ */
__dna_docout.writeFloat("xbc_", xbc_);
/* xc0_ */
__dna_docout.writeFloat("xc0_", xc0_);
/* x154_ */
__dna_docout.writeFloat("x154_", x154_);
/* x15c_ */
__dna_docout.writeFloat("x15c_", x15c_);
/* x160_ */
__dna_docout.writeFloat("x160_", x160_);
/* x164_ */
__dna_docout.writeFloat("x164_", x164_);
/* x168_ */
__dna_docout.writeFloat("x168_", x168_);
/* x16c_ */
__dna_docout.writeFloat("x16c_", x16c_);
/* x170_ */
__dna_docout.writeFloat("x170_", x170_);
/* x174_ */
__dna_docout.writeFloat("x174_", x174_);
/* x178_ */
__dna_docout.writeFloat("x178_", x178_);
/* x17c_ */
__dna_docout.writeFloat("x17c_", x17c_);
/* x180_ */
__dna_docout.writeFloat("x180_", x180_);
/* x184_ */
__dna_docout.writeFloat("x184_", x184_);
/* x188_ */
__dna_docout.writeFloat("x188_", x188_);
/* x18c_ */
__dna_docout.writeVec3f("x18c_", x18c_);
/* x198_ */
__dna_docout.writeFloat("x198_", x198_);
/* x19c_ */
__dna_docout.writeFloat("x19c_", x19c_);
/* x1a0_ */
__dna_docout.writeFloat("x1a0_", x1a0_);
/* x1a4_ */
__dna_docout.writeFloat("x1a4_", x1a4_);
/* x1a8_ */
__dna_docout.writeFloat("x1a8_", x1a8_);
/* x1ac_ */
__dna_docout.writeFloat("x1ac_", x1ac_);
/* x1b0_ */
__dna_docout.writeFloat("x1b0_", x1b0_);
/* x1b4_ */
__dna_docout.writeFloat("x1b4_", x1b4_);
/* x1b8_ */
__dna_docout.writeVec3f("x1b8_", x1b8_);
/* x1c4_ */
__dna_docout.writeFloat("x1c4_", x1c4_);
/* x1c8_ */
__dna_docout.writeFloat("x1c8_", x1c8_);
/* x1cc_ */
__dna_docout.writeFloat("x1cc_", x1cc_);
/* x1d0_ballCameraControlDistance */
__dna_docout.writeFloat("x1d0_ballCameraControlDistance", x1d0_ballCameraControlDistance);
/* x1d4_ */
__dna_docout.writeFloat("x1d4_", x1d4_);
/* x1d8_ */
__dna_docout.writeFloat("x1d8_", x1d8_);
/* x1e4_leftStickDivisor */
__dna_docout.writeFloat("x1e4_leftStickDivisor", x1e4_leftStickDivisor);
/* x1e8_rightStickDivisor */
__dna_docout.writeFloat("x1e8_rightStickDivisor", x1e8_rightStickDivisor);
/* x200_ */
__dna_docout.writeFloat("x200_", x200_);
/* x204_ballTouchRadius */
__dna_docout.writeFloat("x204_ballTouchRadius", x204_ballTouchRadius);
/* x20c_boostBallDrainTime */
__dna_docout.writeFloat("x20c_boostBallDrainTime", x20c_boostBallDrainTime);
/* x218_boostBallMinChargeTime */
__dna_docout.writeFloat("x218_boostBallMinChargeTime", x218_boostBallMinChargeTime);
/* x21c_boostBallMinRelativeSpeedForDamage */
__dna_docout.writeFloat("x21c_boostBallMinRelativeSpeedForDamage", x21c_boostBallMinRelativeSpeedForDamage);
/* x220_boostBallChargeTime0 */
__dna_docout.writeFloat("x220_boostBallChargeTime0", x220_boostBallChargeTime0);
/* x224_boostBallChargeTime1 */
__dna_docout.writeFloat("x224_boostBallChargeTime1", x224_boostBallChargeTime1);
/* x210_boostBallMaxChargeTime */
__dna_docout.writeFloat("x210_boostBallMaxChargeTime", x210_boostBallMaxChargeTime);
/* x22c_boostBallIncrementalSpeed0 */
__dna_docout.writeFloat("x22c_boostBallIncrementalSpeed0", x22c_boostBallIncrementalSpeed0);
/* x230_boostBallIncrementalSpeed1 */
__dna_docout.writeFloat("x230_boostBallIncrementalSpeed1", x230_boostBallIncrementalSpeed1);
/* x234_boostBallIncrementalSpeed2 */
__dna_docout.writeFloat("x234_boostBallIncrementalSpeed2", x234_boostBallIncrementalSpeed2);
}
const char* CTweakBall::DNAType()
{
return "DataSpec::DNAMP1::CTweakBall";
}
size_t CTweakBall::binarySize(size_t __isz) const
{
return __isz + 456;
}
}
}