Please disclose if any significant portion of your mod was created 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 Intro GREAT GREAT ASSET FOR THE COMPANY v1.1.0
BepinEx/plugins/GreatGreatAsset/Intro_FORTHECOMPANY.dll
Decompiled 2 years agousing System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using BepInEx; using BepInEx.Logging; using HarmonyLib; using Intro_FORTHECOMPANY.Patches; 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("Intro_FORTHECOMPANY")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("Intro_FORTHECOMPANY")] [assembly: AssemblyCopyright("Copyright © 2024")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("716016eb-59af-4c40-acf4-4a896de8183f")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] [assembly: AssemblyVersion("1.0.0.0")] namespace Intro_FORTHECOMPANY { [BepInPlugin("WanderingRei.Intro_FORTHECOMPANY", "Intro FOR THE COMPANY", "1.0.3")] public class Plugin : BaseUnityPlugin { private const string modGUID = "WanderingRei.Intro_FORTHECOMPANY"; private const string modName = "Intro FOR THE COMPANY"; private const string modVersion = "1.0.3"; private readonly Harmony harmony = new Harmony("WanderingRei.Intro_FORTHECOMPANY"); private static Plugin Instance; internal ManualLogSource mls; internal static List<AudioClip> SoundFX; internal static AssetBundle Bundle; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } mls = Logger.CreateLogSource("WanderingRei.Intro_FORTHECOMPANY"); mls.LogInfo((object)"The Company is Awake"); harmony.PatchAll(typeof(StartOfRoundPatch)); mls = ((BaseUnityPlugin)this).Logger; SoundFX = new List<AudioClip>(); string location = ((BaseUnityPlugin)Instance).Info.Location; location = location.TrimEnd("Intro_FORTHECOMPANY.dll".ToCharArray()); Bundle = AssetBundle.LoadFromFile(location + "Intro_FORTHECOMPANY"); if ((Object)(object)Bundle != (Object)null) { SoundFX = Bundle.LoadAllAssets<AudioClip>().ToList(); } else { mls.LogError((object)"Failed to load asset bundle"); } } } } namespace Intro_FORTHECOMPANY.Patches { [HarmonyPatch(typeof(StartOfRound))] internal class StartOfRoundPatch { [HarmonyPatch("Update")] [HarmonyPostfix] private static void OverrideAudio(StartOfRound __instance) { __instance.shipIntroSpeechSFX = Plugin.SoundFX[0]; } } }