Decompiled source of Template v1.0.2
BepInEx/plugins/Template.dll
Decompiled 10 months agousing System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using BepInEx.Logging; using GameNetcodeStuff; using HarmonyLib; using Microsoft.CodeAnalysis; using Template.NetcodePatcher; using YourThunderstoreTeam.patch; using YourThunderstoreTeam.service; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: IgnoresAccessChecksTo("")] [assembly: AssemblyCompany("Template")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.2.0")] [assembly: AssemblyInformationalVersion("1.0.2+fef1fe7ef87f99607b3f4b8873639c67006fa503")] [assembly: AssemblyProduct("Template")] [assembly: AssemblyTitle("Template")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] [module: RefSafetyRules(11)] [module: NetcodePatchedAssembly] internal class <Module> { static <Module>() { } } 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 YourThunderstoreTeam { [BepInPlugin("Template", "Template", "1.0.0")] public class Plugin : BaseUnityPlugin { private readonly Harmony _harmony = new Harmony("Template"); public TemplateService Service; public static Plugin Instance { get; set; } public static ManualLogSource Log => ((BaseUnityPlugin)Instance).Logger; public Plugin() { //IL_0006: Unknown result type (might be due to invalid IL or missing references) //IL_0010: Expected O, but got Unknown Instance = this; } private void Awake() { Service = new TemplateService(); Log.LogInfo((object)"Applying patches..."); ApplyPluginPatch(); Log.LogInfo((object)"Patches applied"); } private void ApplyPluginPatch() { _harmony.PatchAll(typeof(ShipLightsPatch)); _harmony.PatchAll(typeof(PlayerControllerBPatch)); } } public static class PluginInfo { public const string PLUGIN_GUID = "Template"; public const string PLUGIN_NAME = "Template"; public const string PLUGIN_VERSION = "1.0.0"; } } namespace YourThunderstoreTeam.service { public class TemplateService { public bool ReturnTrue() { return true; } public bool ReturnFalse() { return false; } } } namespace YourThunderstoreTeam.patch { [HarmonyPatch(typeof(PlayerControllerB))] public class PlayerControllerBPatch { [HarmonyPatch("PlayerJump")] [HarmonyPrefix] private static bool OnPlayerJump(ref PlayerControllerB __instance) { HUDManager.Instance.AddTextToChatOnServer("isJumping: " + __instance.isJumping, -1); __instance.isJumping = false; return false; } } [HarmonyPatch(typeof(ShipLights))] public class ShipLightsPatch { [HarmonyPatch("ToggleShipLights")] [HarmonyPrefix] private static bool OnPowerSwitch(ref ShipLights __instance, object[] __args) { Plugin.Log.LogInfo((object)"The lights are now toggled!"); return false; } } } namespace System.Runtime.CompilerServices { [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] internal sealed class IgnoresAccessChecksToAttribute : Attribute { public IgnoresAccessChecksToAttribute(string assemblyName) { } } } namespace Template.NetcodePatcher { [AttributeUsage(AttributeTargets.Module)] internal class NetcodePatchedAssemblyAttribute : Attribute { } }
GuydoomedEternaly-HelldiversLiberator-1.0.2/BepInEx/plugins/GuydoomedEternaly-HelldiversLiberator/GuydoomedEternaly.HelldiversPack.dll
Decompiled 10 months agousing 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 LethalLib.Modules; using Microsoft.CodeAnalysis; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = "")] [assembly: AssemblyCompany("GuydoomedEternaly.HelldiversPack")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("HelldiversPack")] [assembly: AssemblyTitle("GuydoomedEternaly.HelldiversPack")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)] internal sealed class NullableAttribute : Attribute { public readonly byte[] NullableFlags; public NullableAttribute(byte P_0) { NullableFlags = new byte[1] { P_0 }; } public NullableAttribute(byte[] P_0) { NullableFlags = P_0; } } [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)] internal sealed class NullableContextAttribute : Attribute { public readonly byte Flag; public NullableContextAttribute(byte P_0) { Flag = P_0; } } } public class Infiniteammoglitch : MonoBehaviour { public ShotgunItem shotgu; public float shots = 43f; private void Update() { if (shotgu.shellsLoaded < 2 && shots > 0f) { shotgu.shellsLoaded = 2; shots -= 1f; } else if (shotgu.isReloading) { shots = 100f; } } } namespace HelldiversPack { [BepInPlugin("GuydoomedEternaly.HelldiversPack", "HelldiversPack", "1.0.0")] public class Plugin : BaseUnityPlugin { public static AssetBundle helldiversliberator; public static Plugin Instance; internal static ManualLogSource Logger; internal static Harmony? Harmony { get; set; } private void Awake() { Logger = ((BaseUnityPlugin)this).Logger; Instance = this; string directoryName = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); helldiversliberator = AssetBundle.LoadFromFile(Path.Combine(directoryName, "helldiversliberator")); if (!((Object)(object)helldiversliberator == (Object)null)) { int num = 30; Item val = helldiversliberator.LoadAsset<Item>("Assets/LiberatorItem.asset"); Infiniteammoglitch infiniteammoglitch = val.spawnPrefab.AddComponent<Infiniteammoglitch>(); infiniteammoglitch.shotgu = val.spawnPrefab.GetComponent<ShotgunItem>(); NetworkPrefabs.RegisterNetworkPrefab(val.spawnPrefab); Items.RegisterScrap(val, num, (LevelTypes)(-1)); int num2 = 100; TerminalNode val2 = helldiversliberator.LoadAsset<TerminalNode>("Assets/Node1.asset"); Items.RegisterShopItem(val, (TerminalNode)null, (TerminalNode)null, val2, num2); Logger.LogInfo((object)"GuydoomedEternaly.HelldiversPack v1.0.0 has loaded!"); } } } public static class MyPluginInfo { public const string PLUGIN_GUID = "GuydoomedEternaly.HelldiversPack"; public const string PLUGIN_NAME = "HelldiversPack"; public const string PLUGIN_VERSION = "1.0.0"; } }