mirror of
https://github.com/project-redbud/FunGame-Core.git
synced 2025-12-05 00:06:02 +00:00
Add CreateRoomException and BaseMode.WaitForWorkDone()
This commit is contained in:
parent
627c8e9900
commit
ea9008e908
@ -82,5 +82,16 @@ namespace Milimoe.FunGame.Core.Library.Common.Architecture
|
||||
Working = true;
|
||||
Work = default;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 调用Socket.Send() == Success后,请等待任务完成
|
||||
/// </summary>
|
||||
protected void WaitForWorkDone()
|
||||
{
|
||||
while (true)
|
||||
{
|
||||
if (!Working) break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -149,9 +149,14 @@
|
||||
{
|
||||
public override string Message => "退出房间失败 (#10030)";
|
||||
}
|
||||
|
||||
public class CreateRoomException : Exception
|
||||
{
|
||||
public override string Message => "创建房间失败 (#10031)";
|
||||
}
|
||||
|
||||
public class GetInstanceException : Exception
|
||||
{
|
||||
public override string Message => "构造对象实例遇到错误 (#10031)";
|
||||
public override string Message => "构造对象实例遇到错误 (#10032)";
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user