From bf8754554d39d4b359cdbf021556a28bfd9448bd Mon Sep 17 00:00:00 2001 From: milimoe Date: Sat, 16 Sep 2023 00:34:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=B5=8B=E8=AF=95=E6=8F=92?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Solutions/MyPlugin.cs | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 Solutions/MyPlugin.cs diff --git a/Solutions/MyPlugin.cs b/Solutions/MyPlugin.cs new file mode 100644 index 0000000..c07b23e --- /dev/null +++ b/Solutions/MyPlugin.cs @@ -0,0 +1,43 @@ +using Milimoe.FunGame.Core.Interface; +using Milimoe.FunGame.Core.Library.Common.Event; +using Milimoe.FunGame.Core.Library.Common.Plugin; +using Milimoe.FunGame.Core.Library.Constant; + +namespace FunGame.Testing.Solutions +{ + internal class MyPlugin : BasePlugin, ILoginEvent + { + public override string Name => "FunGame Testing Plugin"; + + public override string Description => "My First Plugin"; + + public override string Version => "1.0.0"; + + public override string Author => "FunGamer"; + + public MyPlugin() + { + + } + + public EventResult AfterLoginEvent(object sender, LoginEventArgs e) + { + return EventResult.Success; + } + + public EventResult BeforeLoginEvent(object sender, LoginEventArgs e) + { + return EventResult.Success; + } + + public EventResult FailedLoginEvent(object sender, LoginEventArgs e) + { + return EventResult.Success; + } + + public EventResult SucceedLoginEvent(object sender, LoginEventArgs e) + { + return EventResult.Success; + } + } +}