public static void Patch(PatchContext patchContext) { Log.TryPatching(() => { patchContext.PatchInit <MyBeacon>(InitPatch); _radius = typeof(MyBeacon).GetPrivateFieldInfo("m_radius"); }); }
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"); }); }
public static void Patch(PatchContext patchContext) { Log.TryPatching(() => { patchContext.PatchInit <MyJumpDrive>(InitPatch); _jumpDistanceRatio = typeof(MyJumpDrive).GetPrivateFieldInfo("m_jumpDistanceRatio"); }); }
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"); }); }
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; }); }
public static void Patch(PatchContext patchContext) { Log.TryPatching(() => { patchContext.PatchInit <MySensorBlock>(InitPatch); _fieldMin = typeof(MySensorBlock).GetPrivateFieldInfo("m_fieldMin"); _fieldMax = typeof(MySensorBlock).GetPrivateFieldInfo("m_fieldMax"); }); }
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"); }); }
public static void Patch(PatchContext patchContext) { Log.TryPatching(() => { patchContext.PatchInit <MyGyro>(InitPatch); _gyroDefinition = typeof(MyGyro).GetPrivateFieldInfo("m_gyroDefinition"); _gyroOverrideVelocity = typeof(MyGyro).GetPrivateFieldInfo("m_gyroOverrideVelocity"); }); }
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"); }); }
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"); }); }
public static void Patch(PatchContext patchContext) { Log.TryPatching(() => { patchContext.PatchInit <MyMotorStator>(InitPatch); }); }
public static void Patch(PatchContext patchContext) { Log.TryPatching(() => { patchContext.PatchInit <MyPistonBase>(InitPatch); }); }