using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using AnySprintDirection.Patches;
using BepInEx;
using BepInEx.Logging;
using HarmonyLib;
using UnityEngine;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("AnySprintDirection")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("AnySprintDirection")]
[assembly: AssemblyCopyright("Copyright © 2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("edc6141c-39bd-42b6-96fc-9cd5bb2ced3d")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace AnySprintDirection
{
[BepInPlugin("Uprank.AnySprintDirection", "Any Sprint Direction", "1.0.0.0")]
public class AnySprintDirectionBase : BaseUnityPlugin
{
private const string modGUID = "Uprank.AnySprintDirection";
private const string modName = "Any Sprint Direction";
private const string modVersion = "1.0.0.0";
private readonly Harmony harmony = new Harmony("Uprank.AnySprintDirection");
private static AnySprintDirectionBase Instance;
internal ManualLogSource mls;
private void Awake()
{
if ((Object)(object)Instance == (Object)null)
{
Instance = this;
}
mls = Logger.CreateLogSource("Uprank.AnySprintDirection");
mls.LogInfo((object)"Upranks Any Sprint Direction Mod started successfully!");
harmony.PatchAll(typeof(AnySprintDirectionBase));
harmony.PatchAll(typeof(PlayerControllerPatch));
}
}
}
namespace AnySprintDirection.Patches
{
[HarmonyPatch(typeof(PlayerController))]
internal class PlayerControllerPatch
{
[HarmonyPatch("Update")]
[HarmonyPostfix]
private static void UpdatePatch(ref bool ___canSprintInAnyDirection)
{
___canSprintInAnyDirection = true;
}
}
}