添加测试插件

This commit is contained in:
milimoe 2023-09-16 00:34:08 +08:00
parent 83c24ca506
commit bf8754554d
Signed by: milimoe
GPG Key ID: 05D280912DA6C69E

43
Solutions/MyPlugin.cs Normal file
View File

@ -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;
}
}
}