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;
using InscryptionAPI.Sound;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: TargetFramework(".NETStandard,Version=v2.0", FrameworkDisplayName = "")]
[assembly: AssemblyCompany("ExpandedGramaphoneMod")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyDescription("Adds All Trench Album Tracks by Twenty One Piolets to the Gramaphone")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("ExpandedGramaphoneMod")]
[assembly: AssemblyTitle("ExpandedGramaphoneMod")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
namespace ExampleMod;
[BepInPlugin("creator.trench.gramophone.add.tracks", "TrenchAPhone", "1.0.0")]
[BepInDependency(/*Could not decode attribute arguments.*/)]
public class Plugin : BaseUnityPlugin
{
private Harmony harmony = new Harmony("creator.trench.gramophone.add.tracks");
private const string PluginGuid = "creator.trench.gramophone.add.tracks";
private const string PluginName = "TrenchAPhone";
private const string PluginVersion = "1.0.0";
public ConfigEntry<bool> configEnable1;
public ConfigEntry<bool> configEnable2;
public ConfigEntry<bool> configEnable3;
public ConfigEntry<bool> configEnable4;
public ConfigEntry<bool> configEnable5;
public ConfigEntry<bool> configEnable6;
public ConfigEntry<bool> configEnable7;
public ConfigEntry<bool> configEnable8;
public ConfigEntry<bool> configEnable9;
public ConfigEntry<bool> configEnable10;
public ConfigEntry<bool> configEnable11;
public ConfigEntry<bool> configEnable12;
public ConfigEntry<bool> configEnable13;
public ConfigEntry<bool> configEnable14;
public void Awake()
{
configEnable1 = ((BaseUnityPlugin)this).Config.Bind<bool>("Gramopone.Enable.Songs", "Jumpsuit?", true, "Should the 'Jumpsuit' Track Show up on the Gramophone?");
configEnable2 = ((BaseUnityPlugin)this).Config.Bind<bool>("Gramopone.Enable.Songs", "Levitate?", true, "Should the 'Levitate' Track Show up on the Gramophone?");
configEnable3 = ((BaseUnityPlugin)this).Config.Bind<bool>("Gramopone.Enable.Songs", "Morph?", true, "Should the 'Morph' Track Show up on the Gramophone?");
configEnable4 = ((BaseUnityPlugin)this).Config.Bind<bool>("Gramopone.Enable.Songs", "My Blood?", true, "Should the 'My Blood' Track Show up on the Gramophone?");
configEnable5 = ((BaseUnityPlugin)this).Config.Bind<bool>("Gramopone.Enable.Songs", "Chlorine?", true, "Should the 'Chlorine' Track Show up on the Gramophone?");
configEnable6 = ((BaseUnityPlugin)this).Config.Bind<bool>("Gramopone.Enable.Songs", "Smithereens?", true, "Should the 'Smithereens' Track Show up on the Gramophone?");
configEnable7 = ((BaseUnityPlugin)this).Config.Bind<bool>("Gramopone.Enable.Songs", "Neon Gravestones?", true, "Should the 'Neon Gravestones' Track Show up on the Gramophone?");
configEnable8 = ((BaseUnityPlugin)this).Config.Bind<bool>("Gramopone.Enable.Songs", "The Hype?", true, "Should the 'The Hype' Track Show up on the Gramophone?");
configEnable9 = ((BaseUnityPlugin)this).Config.Bind<bool>("Gramopone.Enable.Songs", "Nico And The Niners?", true, "Should the 'Neco And The Niners' Track Show up on the Gramophone?");
configEnable10 = ((BaseUnityPlugin)this).Config.Bind<bool>("Gramopone.Enable.Songs", "Cut My Lip?", true, "Should the 'Cut My Lip' Track Show up on the Gramophone?");
configEnable11 = ((BaseUnityPlugin)this).Config.Bind<bool>("Gramopone.Enable.Songs", "Bandito?", true, "Should the 'Bandito' Track Show up on the Gramophone?");
configEnable12 = ((BaseUnityPlugin)this).Config.Bind<bool>("Gramopone.Enable.Songs", "Pet Cheetah?", true, "Should the 'Pet Cheetah' Track Show up on the Gramophone?");
configEnable13 = ((BaseUnityPlugin)this).Config.Bind<bool>("Gramopone.Enable.Songs", "Legend?", true, "Should the 'Legend' Track Show up on the Gramophone?");
configEnable14 = ((BaseUnityPlugin)this).Config.Bind<bool>("Gramopone.Enable.Songs", "Leave The City?", true, "Should the 'Leave The City' Track Show up on the Gramophone?");
int num = 0;
harmony.PatchAll(typeof(Plugin));
if (configEnable1.Value)
{
GramophoneManager.AddTrack("creator.trench.gramophone.add.tracks", "01_Jumpsuit.mp3", 0.5f);
num++;
}
if (configEnable2.Value)
{
GramophoneManager.AddTrack("creator.trench.gramophone.add.tracks", "02_Levitate.mp3", 0.5f);
num++;
}
if (configEnable3.Value)
{
GramophoneManager.AddTrack("creator.trench.gramophone.add.tracks", "03_Morph.mp3", 0.5f);
num++;
}
if (configEnable4.Value)
{
GramophoneManager.AddTrack("creator.trench.gramophone.add.tracks", "04_My_Blood.mp3", 0.5f);
num++;
}
if (configEnable5.Value)
{
GramophoneManager.AddTrack("creator.trench.gramophone.add.tracks", "05_Chlorine.mp3", 0.5f);
num++;
}
if (configEnable6.Value)
{
GramophoneManager.AddTrack("creator.trench.gramophone.add.tracks", "06_Smithereens.mp3", 0.5f);
num++;
}
if (configEnable7.Value)
{
GramophoneManager.AddTrack("creator.trench.gramophone.add.tracks", "07_Neon_Gravestones.mp3", 0.5f);
num++;
}
if (configEnable8.Value)
{
GramophoneManager.AddTrack("creator.trench.gramophone.add.tracks", "08_The_Hype.mp3", 0.5f);
num++;
}
if (configEnable9.Value)
{
GramophoneManager.AddTrack("creator.trench.gramophone.add.tracks", "09_Nico_And_The_Niners.mp3", 0.5f);
num++;
}
if (configEnable10.Value)
{
GramophoneManager.AddTrack("creator.trench.gramophone.add.tracks", "10_Cut_My_Lip.mp3", 0.5f);
num++;
}
if (configEnable11.Value)
{
GramophoneManager.AddTrack("creator.trench.gramophone.add.tracks", "11_Bandito.mp3", 0.5f);
num++;
}
if (configEnable12.Value)
{
GramophoneManager.AddTrack("creator.trench.gramophone.add.tracks", "12_Pet_Cheetah.mp3", 0.5f);
num++;
}
if (configEnable13.Value)
{
GramophoneManager.AddTrack("creator.trench.gramophone.add.tracks", "13_Legend.mp3", 0.5f);
num++;
}
if (configEnable14.Value)
{
GramophoneManager.AddTrack("creator.trench.gramophone.add.tracks", "14_Leave_The_City.mp3", 0.5f);
num++;
}
((BaseUnityPlugin)this).Logger.LogInfo((object)$"Sucsessfully Loaded {num} Song(s)");
}
}
public static class PluginInfo
{
public const string PLUGIN_GUID = "ExpandedGramaphoneMod";
public const string PLUGIN_NAME = "ExpandedGramaphoneMod";
public const string PLUGIN_VERSION = "1.0.0";
}