mirror of
https://github.com/soarqin/DSP_Mods_TO.git
synced 2026-11-19 17:03:50 +08:00
Added CruiseAssist and AutoPilot
This commit is contained in:
1 parent
6f224902f8
commit
b693006e0a
41 files changed
+3956
-1
No files matched your search
@@ -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