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 FnafShipIntro v1.0.0
FnafIntro.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 FnafIntro.Patches; using HarmonyLib; 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("Walter")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("Walter")] [assembly: AssemblyCopyright("Copyright © 2024")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("a07691af-e3fb-4945-8ff1-3c6145c71d15")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] [assembly: AssemblyVersion("1.0.0.0")] namespace FnafIntro { [BepInPlugin("Harmsen.Waltermod", "WalterMod", "1.0.0")] public class FnafIntro : BaseUnityPlugin { private const string modGUID = "Harmsen.Waltermod"; private const string modName = "WalterMod"; private const string modVersion = "1.0.0"; private readonly Harmony harmony = new Harmony("Harmsen.Waltermod"); private static FnafIntro 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("Harmsen.Waltermod"); mls.LogInfo((object)"FnafIntro Loaded"); harmony.PatchAll(typeof(StartOfRoundPatch)); mls = ((BaseUnityPlugin)this).Logger; SoundFX = new List<AudioClip>(); string location = ((BaseUnityPlugin)Instance).Info.Location; location = location.TrimEnd("FnafIntro.dll".ToCharArray()); Bundle = AssetBundle.LoadFromFile(location + "fnaf"); if ((Object)(object)Bundle != (Object)null) { mls.LogInfo((object)"Assets Loaded Finaly"); SoundFX = Bundle.LoadAllAssets<AudioClip>().ToList(); } else { mls.LogError((object)"Failed to load assets!"); } } } } namespace FnafIntro.Patches { [HarmonyPatch(typeof(StartOfRound))] internal class StartOfRoundPatch { [HarmonyPatch("Start")] [HarmonyPostfix] private static void OverRideAudio(StartOfRound __instance) { __instance.shipIntroSpeechSFX = FnafIntro.SoundFX[0]; } } }