using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using BepInEx.Logging;
using HarmonyLib;
using Microsoft.CodeAnalysis;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: AssemblyCompany("DerpyChap")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyDescription("Hat.")]
[assembly: AssemblyFileVersion("1.0.1.0")]
[assembly: AssemblyInformationalVersion("1.0.1")]
[assembly: AssemblyProduct("Hat")]
[assembly: AssemblyTitle("Hat")]
[assembly: AssemblyMetadata("RepositoryUrl", "https://github.com/DerpyChap/TromboneChamp-Hat")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.1.0")]
[module: UnverifiableCode]
[module: RefSafetyRules(11)]
namespace Microsoft.CodeAnalysis
{
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
internal sealed class EmbeddedAttribute : Attribute
{
}
}
namespace System.Runtime.CompilerServices
{
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
[AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)]
internal sealed class RefSafetyRulesAttribute : Attribute
{
public readonly int Version;
public RefSafetyRulesAttribute(int P_0)
{
Version = P_0;
}
}
}
namespace Hat
{
[BepInPlugin("Hat", "Hat", "1.0.1")]
[BepInDependency("ch.offbeatwit.baboonapi.plugin", "2.1.0")]
public class Plugin : BaseUnityPlugin
{
private Harmony _harmony = new Harmony("Hat");
internal static ManualLogSource Logger { get; set; }
private void Awake()
{
Logger = ((BaseUnityPlugin)this).Logger;
Logger.LogInfo((object)"Plugin Hat is loaded!");
_harmony.PatchAll();
}
}
[HarmonyPatch(typeof(GameController), "loadAssetBundleResources")]
internal class GameControllerStartPatch
{
[HarmonyPrefix]
private static void PatchHat()
{
GlobalVariables.chosen_hat = 1;
Plugin.Logger.LogInfo((object)"Hat patched!");
}
}
public static class PluginInfo
{
public const string PLUGIN_GUID = "Hat";
public const string PLUGIN_NAME = "Hat";
public const string PLUGIN_VERSION = "1.0.1";
}
}