更新GetSocketTypeString方法

This commit is contained in:
Mili 2022-12-28 00:03:26 +08:00
parent 3bf075a15d
commit 909f078666
3 changed files with 11 additions and 1 deletions

View File

@ -89,5 +89,10 @@ namespace Milimoe.FunGame.Core.Library.Common.Network
{
throw new System.Exception("监听Socket不能用于接收信息。");
}
public static string GetTypeString(SocketMessageType type)
{
return Socket.GetTypeString(type);
}
}
}

View File

@ -147,5 +147,10 @@ namespace Milimoe.FunGame.Core.Library.Common.Network
if (HeartBeatFaileds++ >= 3)
throw new System.Exception("ERROR与服务器连接中断。");
}
public static string GetTypeString(SocketMessageType type)
{
return SocketManager.GetTypeString(type);
}
}
}

View File

@ -211,7 +211,7 @@ namespace Milimoe.FunGame.Core.Service
/// </summary>
/// <param name="type">通信类型</param>
/// <returns>等效字符串</returns>
private static string GetTypeString(SocketMessageType type)
internal static string GetTypeString(SocketMessageType type)
{
return type switch
{