mirror of
https://github.com/project-redbud/FunGame-Server.git
synced 2025-12-05 00:06:03 +00:00
添加退出房间
This commit is contained in:
parent
1f51fe62cc
commit
4473d6b477
@ -327,7 +327,17 @@ namespace Milimoe.FunGame.Server.Model
|
||||
break;
|
||||
|
||||
case SocketMessageType.QuitRoom:
|
||||
break;
|
||||
if (args != null)
|
||||
{
|
||||
string? roomid = "";
|
||||
if (args.Length > 0) roomid = SocketObject.GetParam<string>(0);
|
||||
if (roomid != null && roomid.Trim() != "")
|
||||
{
|
||||
RoomID = "-1";
|
||||
return Send(socket, type, true);
|
||||
}
|
||||
}
|
||||
return Send(socket, type, false);
|
||||
|
||||
case SocketMessageType.ChangeRoomSetting:
|
||||
break;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user