using System;
using System.Diagnostics;
using System.IO;
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 LCSoundTool;
using Microsoft.CodeAnalysis;
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("AfroTurtle")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyDescription("A item dropship music mod for LethalCompany")]
[assembly: AssemblyFileVersion("1.0.3.0")]
[assembly: AssemblyInformationalVersion("1.0.3+381801675c0074e32d58aec865fbdc9dc35e872b")]
[assembly: AssemblyProduct("LethalSelecta")]
[assembly: AssemblyTitle("LethalSelecta")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.3.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 LethalSelecta
{
[BepInPlugin("Hakdog.LethalSelecta", "LethalSelecta", "1.0.3")]
[BepInDependency(/*Could not decode attribute arguments.*/)]
public class LethalSelectaBase : BaseUnityPlugin
{
private const string modGUID = "Hakdog.LethalSelecta";
private const string modName = "LethalSelecta";
private const string modVersion = "1.0.3";
private const string modFolder = "Hakdog-LethalSelecta";
private readonly Harmony harmony = new Harmony("Hakdog.LethalSelecta");
private static LethalSelectaBase s_instance;
internal ManualLogSource m_mls;
private AudioClip m_selecta;
private AudioClip m_selectaFar;
public void Awake()
{
if ((Object)(object)s_instance == (Object)null)
{
s_instance = this;
}
m_mls = Logger.CreateLogSource("Hakdog.LethalSelecta");
m_mls.LogInfo((object)"Starting LethalSelecta...");
harmony.PatchAll();
string text = Path.Combine(Paths.PluginPath, "Hakdog-LethalSelecta");
m_mls.LogInfo((object)("Loading audio files in directory: " + text));
m_selecta = SoundTool.GetAudioClip("Hakdog-LethalSelecta", "selecta.wav", (AudioType)0);
m_mls.LogInfo((object)$"Loaded clip: {m_selecta.GetName()}, Length: {m_selecta.length}");
m_selectaFar = SoundTool.GetAudioClip("Hakdog-LethalSelecta", "selectaFar.wav", (AudioType)0);
m_mls.LogInfo((object)$"Loaded clip: {m_selectaFar.GetName()}, Length: {m_selectaFar.length}");
SoundTool.ReplaceAudioClip("IcecreamTruckV2Christmas", m_selecta);
SoundTool.ReplaceAudioClip("IcecreamTruckV2ChristmasFar", m_selectaFar);
m_mls.LogInfo((object)"LethalSelecta changed Dropship music successfully!");
}
}
public static class PluginInfo
{
public const string PLUGIN_GUID = "LethalSelecta";
public const string PLUGIN_NAME = "LethalSelecta";
public const string PLUGIN_VERSION = "1.0.3";
}
}