using System.Collections.Generic;
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.Configuration;
using HarmonyLib;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyCompany("TrombSettings")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyDescription("TrombSettings")]
[assembly: AssemblyFileVersion("1.0.2.0")]
[assembly: AssemblyInformationalVersion("1.0.2")]
[assembly: AssemblyProduct("TrombSettings")]
[assembly: AssemblyTitle("TrombSettings")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.2.0")]
[module: UnverifiableCode]
namespace TrombSettings;
[HarmonyPatch]
[BepInPlugin("com.hypersonicsharkz.trombsettings", "TrombSettings", "1.0.2")]
public class TrombConfig : BaseUnityPlugin
{
public static TrombSettings TrombSettings = new TrombSettings();
private void Awake()
{
//IL_0006: Unknown result type (might be due to invalid IL or missing references)
new Harmony("com.hypersonicsharkz.trombsettings").PatchAll();
}
}
public class BaseConfig
{
public ConfigEntryBase entry { get; set; }
public BaseConfig(ConfigEntryBase entry)
{
this.entry = entry;
}
}
public class TrombEntryList : List<BaseConfig>
{
public new void Add(BaseConfig configEntry)
{
base.Add(configEntry);
}
public void Add(ConfigEntryBase configEntry)
{
Add(new BaseConfig(configEntry));
}
}
public class TrombSettings : Dictionary<string, TrombEntryList>
{
public new TrombEntryList this[string key]
{
get
{
if (!ContainsKey(key))
{
Add(key, new TrombEntryList());
}
return base[key];
}
}
public TrombSettings()
{
Add("Settings", null);
}
}
public static class PluginInfo
{
public const string PLUGIN_GUID = "TrombSettings";
public const string PLUGIN_NAME = "TrombSettings";
public const string PLUGIN_VERSION = "1.0.2";
}