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.Configuration;
using BepInEx.Logging;
using HarmonyLib;
using Microsoft.CodeAnalysis;
using PersonalBoombox;
using UnityEngine;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")]
[assembly: AssemblyCompany("LethalCompanyTemplate")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyDescription("A template for Lethal Company")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("LethalCompanyTemplate")]
[assembly: AssemblyTitle("LethalCompanyTemplate")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.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 KoolKidsKlub_BoomBox
{
[BepInPlugin("KoolKidsKlubMX.KoolKidsKlub_Boombox", "KoolKidsKlub Boombox", "1.0.5")]
[BepInProcess("Lethal Company.exe")]
[BepInDependency("ImoutoSama.PersonalBoombox", "1.1.0")]
public class TouhouBoomBoxPlugin : BaseUnityPlugin
{
private const string modGUID = "KoolKidsKlubMX.KoolKidsKlub_Boombox";
private const string modName = "KoolKidsKlub Boombox";
private const string modVersion = "1.0.5";
private readonly Harmony harmony = new Harmony("KoolKidsKlubMX.KoolKidsKlub_Boombox");
internal ManualLogSource logger;
public ConfigEntry<bool> overridePriceFlagConfig;
public ConfigEntry<int> overridePriceValueConfig;
private void Awake()
{
logger = Logger.CreateLogSource("KoolKidsKlubMX.KoolKidsKlub_Boombox");
logger.LogInfo((object)"Plugin KoolKidsKlubMX.KoolKidsKlub_Boombox has been added!");
overridePriceFlagConfig = ((BaseUnityPlugin)this).Config.Bind<bool>("General", "Override Price Flag", false, "If you want to override price of the boomboxes, you MUST set this to true.");
overridePriceValueConfig = ConfigBindClamp("General", "Override Price Value", 30, "Overrides the price of the boomboxes by this value. Clamped from 0 to 1000.", 0, 1000);
RequestData obj = PersonalBoomboxPlugin.AddFromAssemblyDll(Assembly.GetExecutingAssembly().Location);
obj.overridePriceFlag = overridePriceFlagConfig.Value;
obj.overridePriceValue = overridePriceValueConfig.Value;
}
public ConfigEntry<int> ConfigBindClamp(string section, string key, int defaultValue, string description, int min, int max)
{
ConfigEntry<int> obj = ((BaseUnityPlugin)this).Config.Bind<int>(section, key, defaultValue, description);
obj.Value = Mathf.Clamp(obj.Value, min, max);
return obj;
}
}
}