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 ModdingTales;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: AssemblyTitle("CameraToolsPlugin")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("HolloFox modding")]
[assembly: AssemblyProduct("CameraToolsPlugin")]
[assembly: AssemblyCopyright("Copyright © 2022")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("4e4deb5e-97f9-4901-bf67-6748a9c1229a")]
[assembly: AssemblyFileVersion("3.3.3.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("3.3.3.0")]
namespace CameraToolsPlugin
{
[BepInPlugin("org.hollofox.plugins.CameraToolsPlugin", "Camera Tools Plug-In", "3.3.3.0")]
[BepInDependency(/*Could not decode attribute arguments.*/)]
public class CameraToolsPlugin : BaseUnityPlugin
{
public const string Guid = "org.hollofox.plugins.CameraToolsPlugin";
internal const string Version = "3.3.3.0";
internal static ManualLogSource logSource;
internal static ConfigEntry<float> minTilt { get; set; }
internal static ConfigEntry<float> maxTilt { get; set; }
private void Awake()
{
//IL_007b: Unknown result type (might be due to invalid IL or missing references)
logSource = ((BaseUnityPlugin)this).Logger;
((BaseUnityPlugin)this).Logger.LogInfo((object)"In Awake for Camera Tools");
minTilt = ((BaseUnityPlugin)this).Config.Bind<float>("Tilt Limit", "minimum", -124f, (ConfigDescription)null);
maxTilt = ((BaseUnityPlugin)this).Config.Bind<float>("Tilt Limit", "maximum", 53f, (ConfigDescription)null);
((BaseUnityPlugin)this).Logger.LogDebug((object)"CameraTools Plug-in loaded");
ModdingUtils.AddPluginToMenuList((BaseUnityPlugin)(object)this, "HolloFoxes'");
new Harmony("org.hollofox.plugins.CameraToolsPlugin").PatchAll();
}
}
}
namespace CameraToolsPlugin.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)
{
resourceMan = new ResourceManager("CameraToolsPlugin.Properties.Resources", typeof(Resources).Assembly);
}
return resourceMan;
}
}
[EditorBrowsable(EditorBrowsableState.Advanced)]
internal static CultureInfo Culture
{
get
{
return resourceCulture;
}
set
{
resourceCulture = value;
}
}
internal Resources()
{
}
}
}
namespace CameraToolsPlugin.Patches
{
[HarmonyPatch(typeof(RootTargetCameraMode), "Awake")]
internal class RootTargetCameraModeAwakePatch
{
internal static void Postfix(ref float ___maxTilt, ref float ___minTilt)
{
___minTilt = CameraToolsPlugin.minTilt.Value;
___maxTilt = CameraToolsPlugin.maxTilt.Value;
}
}
}