FunGame-Core/Interface/Event/GamingEvents.cs
milimoe 2de1e57e0c
针对服务器端的新功能支持与改进 (#90)
* 添加SQLite模式

* 将Hashtable转为Dictionary<string, object>,因为它具有性能优势

* 添加GamingRequest用于区分Gaming

* 模组中AfterLoad方法现已移动至加载器完全加载完毕后触发

* 删除了服务器对GameModule的加载,现在只会加载GameModuleServer
2024-09-25 09:24:53 +08:00

106 lines
3.3 KiB
C#

using Milimoe.FunGame.Core.Library.Common.Event;
// 模组需要实现什么事件就继承什么接口
namespace Milimoe.FunGame.Core.Interface
{
public interface IGamingConnectEvent
{
public void GamingConnectEvent(object sender, GamingEventArgs e, Dictionary<string, object> data);
}
public interface IGamingDisconnectEvent
{
public void GamingDisconnectEvent(object sender, GamingEventArgs e, Dictionary<string, object> data);
}
public interface IGamingReconnectEvent
{
public void GamingReconnectEvent(object sender, GamingEventArgs e, Dictionary<string, object> data);
}
public interface IGamingBanCharacterEvent
{
public void GamingBanCharacterEvent(object sender, GamingEventArgs e, Dictionary<string, object> data);
}
public interface IGamingPickCharacterEvent
{
public void GamingPickCharacterEvent(object sender, GamingEventArgs e, Dictionary<string, object> data);
}
public interface IGamingRandomEvent
{
public void GamingRandomEvent(object sender, GamingEventArgs e, Dictionary<string, object> data);
}
public interface IGamingRoundEvent
{
public void GamingRoundEvent(object sender, GamingEventArgs e, Dictionary<string, object> data);
}
public interface IGamingLevelUpEvent
{
public void GamingLevelUpEvent(object sender, GamingEventArgs e, Dictionary<string, object> data);
}
public interface IGamingMoveEvent
{
public void GamingMoveEvent(object sender, GamingEventArgs e, Dictionary<string, object> data);
}
public interface IGamingAttackEvent
{
public void GamingAttackEvent(object sender, GamingEventArgs e, Dictionary<string, object> data);
}
public interface IGamingSkillEvent
{
public void GamingSkillEvent(object sender, GamingEventArgs e, Dictionary<string, object> data);
}
public interface IGamingItemEvent
{
public void GamingItemEvent(object sender, GamingEventArgs e, Dictionary<string, object> data);
}
public interface IGamingMagicEvent
{
public void GamingMagicEvent(object sender, GamingEventArgs e, Dictionary<string, object> data);
}
public interface IGamingBuyEvent
{
public void GamingBuyEvent(object sender, GamingEventArgs e, Dictionary<string, object> data);
}
public interface IGamingSuperSkillEvent
{
public void GamingSuperSkillEvent(object sender, GamingEventArgs e, Dictionary<string, object> data);
}
public interface IGamingPauseEvent
{
public void GamingPauseEvent(object sender, GamingEventArgs e, Dictionary<string, object> data);
}
public interface IGamingUnpauseEvent
{
public void GamingUnpauseEvent(object sender, GamingEventArgs e, Dictionary<string, object> data);
}
public interface IGamingSurrenderEvent
{
public void GamingSurrenderEvent(object sender, GamingEventArgs e, Dictionary<string, object> data);
}
public interface IGamingUpdateInfoEvent
{
public void GamingUpdateInfoEvent(object sender, GamingEventArgs e, Dictionary<string, object> data);
}
public interface IGamingPunishEvent
{
public void GamingPunishEvent(object sender, GamingEventArgs e, Dictionary<string, object> data);
}
}