mirror of
https://github.com/project-redbud/FunGame-Core.git
synced 2025-04-22 12:09:34 +08:00

* 添加GameMode, GameMap; 优化了Plugin和RoomType等 * 添加GameModeLoader,重构GameMode和GameMap * 添加Gaming事件接口 * 添加IGameModeSupported接口 * 为GameMode添加Implement接口 * 为BeforeConnect添加参数
41 lines
1021 B
C#
41 lines
1021 B
C#
using Milimoe.FunGame.Core.Interface;
|
|
using Milimoe.FunGame.Core.Library.Common.Event;
|
|
|
|
namespace Milimoe.FunGame.Core.Library.Common.Addon
|
|
{
|
|
/// <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)
|
|
{
|
|
|
|
}
|
|
|
|
public void FailedLoginEvent(object sender, LoginEventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
public void SucceedLoginEvent(object sender, LoginEventArgs e)
|
|
{
|
|
|
|
}
|
|
}
|
|
}
|