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 LightSwitchAlwaysOn v1.0.0
LethalCompanyLightSwitchAlwaysOn.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 HarmonyLib; using LethalCompanyLightSwitchAlwaysOn.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("LethalCompanyLightSwitchAlwaysOn")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("LethalCompanyLightSwitchAlwaysOn")] [assembly: AssemblyCopyright("Copyright © 2023")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("4d8818c9-098d-438f-a0e9-5e68dae171f0")] [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 LethalCompanyLightSwitchAlwaysOn { [BepInPlugin("Juny.LightSwitchAlwaysOn", "Light switch always on", "1.0.0")] public class Plugin : BaseUnityPlugin { private const string modGUID = "Juny.LightSwitchAlwaysOn"; private const string modName = "Light switch always on"; private const string modVersion = "1.0.0"; private readonly Harmony harmony = new Harmony("Juny.LightSwitchAlwaysOn"); private static Plugin Instance; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } Debug.Log((object)"LOADING MOD"); harmony.PatchAll(typeof(Plugin)); harmony.PatchAll(typeof(ShipLightsPatch)); } } } namespace LethalCompanyLightSwitchAlwaysOn.Patches { [HarmonyPatch] internal class ShipLightsPatch { [HarmonyPatch(typeof(ShipLights), "SetShipLightsClientRpc")] [HarmonyPrefix] public static void SetShipLightsClientRpcPatch(ref bool setLightsOn) { setLightsOn = true; } } }