mirror of
https://github.com/milimoe/FunGame-Testing.git
synced 2025-12-05 16:16:36 +00:00
添加测试插件
This commit is contained in:
parent
83c24ca506
commit
bf8754554d
43
Solutions/MyPlugin.cs
Normal file
43
Solutions/MyPlugin.cs
Normal 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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user