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 nexortestmod v0.0.1
MyFirstBeplnExMod.dll
Decompiled 2 years agousing System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using BepInEx; using BepInEx.Configuration; 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("MyFirstBeplnExMod")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("MyFirstBeplnExMod")] [assembly: AssemblyCopyright("Copyright © 2024")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("82d6d362-58ff-4915-a1c0-b66612550264")] [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 MyFirstBepInExMod; [BepInPlugin("nexor.MyFirstBepInExMod", "这是我的第一个BepIn插件", "1.0.0.0")] public class MyFirstBepInExMod : BaseUnityPlugin { private ConfigEntry<int> intConfig; private ConfigEntry<string> stringConfig; private void Awake() { Debug.Log((object)"Hello, world!"); } private void Start() { intConfig = ((BaseUnityPlugin)this).Config.Bind<int>("config", "TestInt", 10, "测试用Int"); stringConfig = ((BaseUnityPlugin)this).Config.Bind<string>("config", "TestString", "Hello", "测试用String"); ((BaseUnityPlugin)this).Logger.LogInfo((object)intConfig.Value); ((BaseUnityPlugin)this).Logger.LogInfo((object)stringConfig.Value); Debug.Log((object)"这里是Start()方法中的内容!"); } private void Update() { KeyboardShortcut val = default(KeyboardShortcut); ((KeyboardShortcut)(ref val))..ctor((KeyCode)290, Array.Empty<KeyCode>()); if (((KeyboardShortcut)(ref val)).IsDown()) { Debug.Log((object)"这里是Updatet()方法中的内容,你看到这条消息是因为你按下了F9"); } } private void OnDestroy() { Debug.Log((object)"当你看到这条消息时,就表示我已经被关闭一次了!"); } }