예제 #1
0
 public static void Patch(PatchContext patchContext)
 {
     Log.TryPatching(() =>
     {
         patchContext.PatchInit <MyBeacon>(InitPatch);
         _radius = typeof(MyBeacon).GetPrivateFieldInfo("m_radius");
     });
 }
예제 #2
0
 public static void Patch(PatchContext patchContext)
 {
     Log.TryPatching(() =>
     {
         patchContext.PatchInit <MyThrust>(InitPatch);
         _thrustOverride = typeof(MyThrust).GetPrivateFieldInfo("m_thrustOverride");
     });
 }
 public static void Patch(PatchContext patchContext)
 {
     Log.TryPatching(() =>
     {
         patchContext.PatchInit <MyLargeTurretBase>(InitPatch);
         _shootingRange = typeof(MyLargeTurretBase).GetPrivateFieldInfo("m_shootingRange");
     });
 }
예제 #4
0
 public static void Patch(PatchContext patchContext)
 {
     Log.TryPatching(() =>
     {
         patchContext.PatchInit <MyJumpDrive>(InitPatch);
         _jumpDistanceRatio = typeof(MyJumpDrive).GetPrivateFieldInfo("m_jumpDistanceRatio");
     });
 }
예제 #5
0
 public static void Patch(PatchContext patchContext)
 {
     Log.TryPatching(() =>
     {
         patchContext.PatchInit <MyOreDetector>(InitPatch);
         _range = typeof(MyOreDetector).GetPrivateFieldInfo("m_range");
     });
 }
 public static void Patch(PatchContext patchContext)
 {
     Log.TryPatching(() =>
     {
         patchContext.PatchInit <MyMechanicalConnectionBlockBase>(InitPatch);
         _safetyDetach = typeof(MyMechanicalConnectionBlockBase).GetPrivateFieldInfo("m_safetyDetach");
     });
 }
예제 #7
0
 public static void Patch(PatchContext patchContext)
 {
     Log.TryPatching(() =>
     {
         patchContext.PatchInit <MyWarhead>(InitPatch);
         _countdownMs    = typeof(MyWarhead).GetPrivateFieldInfo("m_countdownMs");
         _maxCountdownMs = typeof(MyWarhead).GetPrivateConstValue <int>("MAX_COUNTDOWN") * 1000;
     });
 }
예제 #8
0
 public static void Patch(PatchContext patchContext)
 {
     Log.TryPatching(() =>
     {
         patchContext.PatchInit <MySensorBlock>(InitPatch);
         _fieldMin = typeof(MySensorBlock).GetPrivateFieldInfo("m_fieldMin");
         _fieldMax = typeof(MySensorBlock).GetPrivateFieldInfo("m_fieldMax");
     });
 }
예제 #9
0
 public static void Patch(PatchContext patchContext)
 {
     Log.TryPatching(() =>
     {
         patchContext.PatchInit <MyLaserAntenna>(InitPatch);
         _range         = typeof(MyLaserAntenna).GetPrivateFieldInfo("m_range");
         _infiniteRange = typeof(MyLaserAntenna).GetPrivateConstValue <float>("INFINITE_RANGE");
     });
 }
예제 #10
0
 public static void Patch(PatchContext patchContext)
 {
     Log.TryPatching(() =>
     {
         patchContext.PatchInit <MyGyro>(InitPatch);
         _gyroDefinition       = typeof(MyGyro).GetPrivateFieldInfo("m_gyroDefinition");
         _gyroOverrideVelocity = typeof(MyGyro).GetPrivateFieldInfo("m_gyroOverrideVelocity");
     });
 }
예제 #11
0
 public static void Patch(PatchContext patchContext)
 {
     Log.TryPatching(() =>
     {
         patchContext.PatchInit <MyLightingBlock>(InitPatch);
         _lightRadius          = typeof(MyLightingBlock).GetPrivateFieldInfo("m_lightRadius");
         _lightFalloff         = typeof(MyLightingBlock).GetPrivateFieldInfo("m_lightFalloff");
         _blinkIntervalSeconds = typeof(MyLightingBlock).GetPrivateFieldInfo("m_blinkIntervalSeconds");
         _blinkLength          = typeof(MyLightingBlock).GetPrivateFieldInfo("m_blinkLength");
         _blinkOffset          = typeof(MyLightingBlock).GetPrivateFieldInfo("m_blinkOffset");
         _intensity            = typeof(MyLightingBlock).GetPrivateFieldInfo("m_intensity");
         _lightOffset          = typeof(MyLightingBlock).GetPrivateFieldInfo("m_lightOffset");
     });
 }
예제 #12
0
 public static void Patch(PatchContext patchContext)
 {
     Log.TryPatching(() =>
     {
         patchContext.PatchInit <MyMotorSuspension>(InitPatch);
         _maxSteerAngle      = typeof(MyMotorSuspension).GetPrivateFieldInfo("m_maxSteerAngle");
         _power              = typeof(MyMotorSuspension).GetPrivateFieldInfo("m_power");
         _strenth            = typeof(MyMotorSuspension).GetPrivateFieldInfo("m_strenth");
         _height             = typeof(MyMotorSuspension).GetPrivateFieldInfo("m_height");
         _friction           = typeof(MyMotorSuspension).GetPrivateFieldInfo("m_friction");
         _speedLimit         = typeof(MyMotorSuspension).GetPrivateFieldInfo("m_speedLimit");
         _propulsionOverride = typeof(MyMotorSuspension).GetPrivateFieldInfo("m_propulsionOverride");
         _steeringOverride   = typeof(MyMotorSuspension).GetPrivateFieldInfo("m_steeringOverride");
     });
 }
예제 #13
0
 public static void Patch(PatchContext patchContext)
 {
     Log.TryPatching(() => { patchContext.PatchInit <MyMotorStator>(InitPatch); });
 }
예제 #14
0
 public static void Patch(PatchContext patchContext)
 {
     Log.TryPatching(() => { patchContext.PatchInit <MyPistonBase>(InitPatch); });
 }