using System.CodeDom.Compiler;
using System.ComponentModel;
using System.Diagnostics;
using System.Globalization;
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Configuration;
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("HVHP")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("TaleSpire Modding Community")]
[assembly: AssemblyProduct("HVHP")]
[assembly: AssemblyCopyright("Copyright © 2022")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("4e4deb5e-97f9-4901-bf67-6748a9c1229a")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace HideVolumeExtensions.Properties
{
[GeneratedCode("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
[DebuggerNonUserCode]
[CompilerGenerated]
internal class Resources
{
private static ResourceManager resourceMan;
private static CultureInfo resourceCulture;
[EditorBrowsable(EditorBrowsableState.Advanced)]
internal static ResourceManager ResourceManager
{
get
{
if (resourceMan == null)
{
ResourceManager resourceManager = new ResourceManager("HideVolumeExtensions.Properties.Resources", typeof(Resources).Assembly);
resourceMan = resourceManager;
}
return resourceMan;
}
}
[EditorBrowsable(EditorBrowsableState.Advanced)]
internal static CultureInfo Culture
{
get
{
return resourceCulture;
}
set
{
resourceCulture = value;
}
}
internal Resources()
{
}
}
}
namespace HidePlanePatch
{
[BepInPlugin("org.HF.plugins.HPP", "Hide Plane Patch", "1.0.0.0")]
[BepInDependency(/*Could not decode attribute arguments.*/)]
public sealed class HPPPlugin : BaseUnityPlugin
{
public const string Guid = "org.HF.plugins.HPP";
public const string Version = "1.0.0.0";
private const string Name = "Hide Plane Patch";
internal static Harmony harmony;
internal static ManualLogSource _logger;
internal static ConfigEntry<float> CullBoxMultiplier;
public static void DoPatching()
{
//IL_0006: Unknown result type (might be due to invalid IL or missing references)
//IL_0010: Expected O, but got Unknown
harmony = new Harmony("org.HF.plugins.HPP");
harmony.PatchAll();
_logger.LogInfo((object)"Hide Plane Patch: Patched.");
}
private static void DoConfig(ConfigFile config)
{
CullBoxMultiplier = config.Bind<float>("CullBox", "Multiplier", 100f, (ConfigDescription)null);
}
private void Awake()
{
_logger = ((BaseUnityPlugin)this).Logger;
DoConfig(((BaseUnityPlugin)this).Config);
DoPatching();
_logger.LogInfo((object)"Hide Plane Patch is Active.");
}
}
}
namespace HidePlanePatch.Patches
{
[HarmonyPatch(typeof(HeightHidePlane), "Awake")]
internal sealed class HeightHidePlanePatch
{
private static void Postfix(ref HeightHidePlane __instance)
{
//IL_0021: Unknown result type (might be due to invalid IL or missing references)
((Component)__instance).transform.localScale = new Vector3(HPPPlugin.CullBoxMultiplier.Value, 1f, HPPPlugin.CullBoxMultiplier.Value);
}
}
}