milimoe c51b7c50fa
统一命名 并禁止GameModuleServer调用DataRequest (#81)
* 统一命名 并禁止GameModuleServer调用DataRequest

* 添加了GameModuleDepend (依赖集合) 用于整合Maps Characters Items Skills
2024-08-01 20:40:25 +08:00

42 lines
1.1 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using Milimoe.FunGame.Core.Interface;
using Milimoe.FunGame.Core.Library.Common.Event;
namespace Milimoe.FunGame.Core.Library.Common.Addon.Example
{
/// <summary>
/// 必须继承基类:<see cref="Plugin"/><para/>
/// 继承事件接口并实现其方法来使插件生效。例如继承:<seealso cref="ILoginEvent"/>
/// </summary>
public class ExamplePlugin : Plugin, ILoginEvent
{
public override string Name => "FunGame Example Plugin";
public override string Description => "My First Plugin";
public override string Version => "1.0.0";
public override string Author => "FunGamer";
public void AfterLoginEvent(object sender, LoginEventArgs e)
{
}
public void BeforeLoginEvent(object sender, LoginEventArgs e)
{
// 如果这里设置Cancel = true将终止登录
e.Cancel = true;
}
public void FailedLoginEvent(object sender, LoginEventArgs e)
{
}
public void SucceedLoginEvent(object sender, LoginEventArgs e)
{
}
}
}