Please disclose if your mod was created primarily using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
Decompiled source of TurkoCompany v1.0.2
TurkoCompany.dll
Decompiled 2 years agousing System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using BepInEx; using BepInEx.Logging; using HarmonyLib; using LCSoundTool; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: AssemblyTitle("TurkoCompany")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("TurkoCompany")] [assembly: AssemblyCopyright("Copyright © 2024")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("8f094e46-8c1e-44b6-a486-2dc36235326c")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] [assembly: AssemblyVersion("1.0.0.0")] namespace TurkoCompany; [BepInPlugin("WiCK3D-TurkoCompany", "TurkoCompany", "1.0.2")] public class TurkoCompanyBase : BaseUnityPlugin { private const string pluginGUID = "WiCK3D-TurkoCompany"; private const string pluginName = "TurkoCompany"; private const string pluginVersion = "1.0.2"; private readonly Harmony harmony = new Harmony("WiCK3D-TurkoCompany"); private static TurkoCompanyBase Instance; internal ManualLogSource logger; public static AudioClip icecreamTruckMusic; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } logger = Logger.CreateLogSource("WiCK3D-TurkoCompany"); logger.LogInfo((object)"Plugin WiCK3D-TurkoCompany is loaded!"); harmony.PatchAll(typeof(TurkoCompanyBase)); icecreamTruckMusic = SoundTool.GetAudioClip("WiCK3D-TurkoCompany", "icecreamTruck.wav"); ((Object)icecreamTruckMusic).name = "icecreamTruck"; string[] array = new string[4] { "IcecreamTruckV2", "IcecreamTruckV2Far", "IcecreamTruckV2Christmas", "IcecreamTruckV2ChristmasFar" }; for (int i = 0; i < array.Length; i++) { SoundTool.ReplaceAudioClip(array[i], icecreamTruckMusic); } logger.LogInfo((object)"IcecreamTruckV2 music updated!"); } }