#pragma once #include #include "KingSystem/Resource/GeneralParamList/resGParamListObject.h" #include "KingSystem/Utils/Types.h" namespace ksys::res { class GParamListObjectMotorcycle : public GParamListObject { public: GParamListObjectMotorcycle(); const char* getName() const override { return "Motorcycle"; } agl::utl::Parameter mPitchDampingCoefficient; agl::utl::Parameter mDriftAllowSpeedKPH; agl::utl::Parameter mDriftAbortSpeedKPH; agl::utl::Parameter mDriftAllowSteerRate; agl::utl::Parameter mDriftAbortSteerRate; agl::utl::Parameter mDriftRearAngleRate; agl::utl::Parameter mDriftSpeedRate; agl::utl::Parameter mManualWheelieAllowAngleFront; agl::utl::Parameter mManualWheelieAllowAngleRear; agl::utl::Parameter mManualWheelieLastSec; agl::utl::Parameter mWheelieLastSecInMidAir; agl::utl::Parameter mManualControlProhibitSecAfterWheelie; agl::utl::Parameter mWheelieRevertPower; agl::utl::Parameter mWheelieRevertPowerSec; agl::utl::Parameter mManualWheelieRiseDegDelta; agl::utl::Parameter mWheelieLaunchRiseDegDelta; agl::utl::Parameter mEngineBrakeMaxPower; agl::utl::Parameter mBackwardEngineBrakePower; agl::utl::Parameter mSlipStartAngle; agl::utl::Parameter mSlipThresholdPower; agl::utl::Parameter mSlipPowerMax; agl::utl::Parameter mWristBindRotation; agl::utl::Parameter mWristBindTranslation; agl::utl::Parameter mPostureLimitAngle; agl::utl::Parameter mInvalidPostureLimitSec; agl::utl::Parameter mFallOverThresholdAngle; agl::utl::Parameter mJumpIntervalSec; agl::utl::Parameter mFullEnergyLastSec; agl::utl::Parameter mWheelieLaunchJumpProhibitSec; agl::utl::Parameter mSlowModeTargetSpeedKPH2; agl::utl::Parameter mSlowDriftTargetSpeedKPH2; agl::utl::Parameter mSlowModeTransitionSec; agl::utl::Parameter mSlowSlipThresholdKPH; agl::utl::Parameter mSlowSlipThresholdPower; agl::utl::Parameter mSlowSlipThresholdSec; agl::utl::Parameter mJumpRearWheelRotateRadPerSec; agl::utl::Parameter mWeaponThrowModeSpeedKPH2; }; KSYS_CHECK_SIZE_NX150(GParamListObjectMotorcycle, 0x4e8); inline GParamListObjectMotorcycle::GParamListObjectMotorcycle() { auto* const obj = &mObj; mPitchDampingCoefficient.init(0.2, "PitchDampingCoefficient", "", obj); mDriftAllowSpeedKPH.init(45.0, "DriftAllowSpeedKPH", "", obj); mDriftAbortSpeedKPH.init(30.0, "DriftAbortSpeedKPH", "", obj); mDriftAllowSteerRate.init(0.6, "DriftAllowSteerRate", "", obj); mDriftAbortSteerRate.init(0.1, "DriftAbortSteerRate", "", obj); mDriftRearAngleRate.init(-2.5, "DriftRearAngleRate", "", obj); mDriftSpeedRate.init(0.75, "DriftSpeedRate", "", obj); mManualWheelieAllowAngleFront.init(15.0, "ManualWheelieAllowAngleFront", "", obj); mManualWheelieAllowAngleRear.init(30.0, "ManualWheelieAllowAngleRear", "", obj); mManualWheelieLastSec.init(2.5, "ManualWheelieLastSec", "", obj); mWheelieLastSecInMidAir.init(0.5, "WheelieLastSecInMidAir", "", obj); mManualControlProhibitSecAfterWheelie.init(1.0, "ManualControlProhibitSecAfterWheelie", "", obj); mWheelieRevertPower.init(4.0, "WheelieRevertPower", "", obj); mWheelieRevertPowerSec.init(0.5, "WheelieRevertPowerSec", "", obj); mManualWheelieRiseDegDelta.init(3.0, "ManualWheelieRiseDegDelta", "", obj); mWheelieLaunchRiseDegDelta.init(1.0, "WheelieLaunchRiseDegDelta", "", obj); mEngineBrakeMaxPower.init(100.0, "EngineBrakeMaxPower", "", obj); mBackwardEngineBrakePower.init(400.0, "BackwardEngineBrakePower", "", obj); mSlipStartAngle.init(50.0, "SlipStartAngle", "", obj); mSlipThresholdPower.init(2500.0, "SlipThresholdPower", "", obj); mSlipPowerMax.init(1800.0, "SlipPowerMax", "", obj); mWristBindRotation.init({-1.72, -1.84, -2.9}, "WristBindRotation", "", obj); mWristBindTranslation.init({0.355, 0.08, -0.145}, "WristBindTranslation", "", obj); mPostureLimitAngle.init(90.0, "PostureLimitAngle", "", obj); mInvalidPostureLimitSec.init(0.6, "InvalidPostureLimitSec", "", obj); mFallOverThresholdAngle.init(75.0, "FallOverThresholdAngle", "", obj); mJumpIntervalSec.init(1.0, "JumpIntervalSec", "", obj); mFullEnergyLastSec.init(240.0, "FullEnergyLastSec", "", obj); mWheelieLaunchJumpProhibitSec.init(0.1, "WheelieLaunchJumpProhibitSec", "", obj); mSlowModeTargetSpeedKPH2.init(400.0, "SlowModeTargetSpeedKPH2", "", obj); mSlowDriftTargetSpeedKPH2.init(3200.0, "SlowDriftTargetSpeedKPH2", "", obj); mSlowModeTransitionSec.init(2.0, "SlowModeTransitionSec", "", obj); mSlowSlipThresholdKPH.init(5.0, "SlowSlipThresholdKPH", "", obj); mSlowSlipThresholdPower.init(1200.0, "SlowSlipThresholdPower", "", obj); mSlowSlipThresholdSec.init(0.2, "SlowSlipThresholdSec", "", obj); mJumpRearWheelRotateRadPerSec.init(1.0, "JumpRearWheelRotateRadPerSec", "", obj); mWeaponThrowModeSpeedKPH2.init(800.0, "WeaponThrowModeSpeedKPH2", "", obj); } } // namespace ksys::res