mirror of
https://github.com/soarqin/DSP_Mods_TO.git
synced 2025-12-15 11:03:32 +08:00
Added CruiseAssist and AutoPilot
This commit is contained in:
17
AutoPilot/Patches/Patch_VFInput.cs
Normal file
17
AutoPilot/Patches/Patch_VFInput.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using AutoPilot.Enums;
|
||||
using HarmonyLib;
|
||||
|
||||
namespace AutoPilot.Patches;
|
||||
|
||||
[HarmonyPatch(typeof(VFInput))]
|
||||
internal class Patch_VFInput
|
||||
{
|
||||
[HarmonyPatch("_sailSpeedUp", MethodType.Getter)]
|
||||
[HarmonyPostfix]
|
||||
public static void SailSpeedUp_Postfix(ref bool __result)
|
||||
{
|
||||
if (AutoPilotPlugin.State == AutoPilotState.Inactive) return;
|
||||
if (AutoPilotPlugin.InputSailSpeedUp)
|
||||
__result = true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user