mirror of
https://github.com/project-redbud/FunGame-Core.git
synced 2025-12-05 16:16:33 +00:00
添加 Web API 的 OnWebAPIStarted 事件
This commit is contained in:
parent
a3d3dc7df1
commit
42abf38b27
@ -52,6 +52,14 @@ namespace Milimoe.FunGame.Core.Api.Utility
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void OnWebAPIStarted(params object[] objs)
|
||||||
|
{
|
||||||
|
Parallel.ForEach(Plugins.Values, plugin =>
|
||||||
|
{
|
||||||
|
plugin.OnWebAPIStarted(objs);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
public void OnBeforeConnectEvent(object sender, ConnectEventArgs e)
|
public void OnBeforeConnectEvent(object sender, ConnectEventArgs e)
|
||||||
{
|
{
|
||||||
Parallel.ForEach(Plugins.Values, plugin =>
|
Parallel.ForEach(Plugins.Values, plugin =>
|
||||||
|
|||||||
@ -99,6 +99,15 @@ namespace Milimoe.FunGame.Core.Library.Common.Addon
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 当 Web API 服务启动完成后触发
|
||||||
|
/// </summary>
|
||||||
|
/// <returns></returns>
|
||||||
|
public virtual void OnWebAPIStarted(params object[] objs)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 绑定事件。在<see cref="BeforeLoad"/>后触发
|
/// 绑定事件。在<see cref="BeforeLoad"/>后触发
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user