diff --git a/Api/Utility/ConcurrentModelList.cs b/Api/Utility/ConcurrentModelList.cs index 741b207..bfae573 100644 --- a/Api/Utility/ConcurrentModelList.cs +++ b/Api/Utility/ConcurrentModelList.cs @@ -85,6 +85,11 @@ namespace Milimoe.FunGame.Core.Api.Utility return result; } + /// + /// 判断是否存在指定的Model + /// + /// + /// public bool ContainsKey(string name) { return Models.ContainsKey(name); diff --git a/Interface/Base/IServerModel.cs b/Interface/Base/IServerModel.cs index 639ecb8..e2e1737 100644 --- a/Interface/Base/IServerModel.cs +++ b/Interface/Base/IServerModel.cs @@ -70,6 +70,20 @@ namespace Milimoe.FunGame.Core.Interface.Base /// public void SendSystemMessage(ShowMessageType showtype, string msg, string title, int autoclose, params string[] usernames); + /// + /// 踢下线 + /// + /// + /// + public Task Kick(string msg); + + /// + /// 强制退出登录 + /// + /// + /// + public Task ForceLogOut(string msg); + /// /// 获取客户端的名称,通常未登录时显示为客户端的IP地址,登录后显示为账号名 ///