forked from powerfun/udpservice
对战
This commit is contained in:
1 parent
81409dca9e
commit
d77ed1bad1
13 files changed
+817
-47
No files matched your search
@@ -145,6 +145,38 @@ namespace OnlineUserPool.Services
|
||||
//{
|
||||
// _action(ipEndPoint, JsonConvert.DeserializeObject<SetWatchCommand>(temp));
|
||||
//}
|
||||
else if (msg.CommandType == 3)
|
||||
{
|
||||
if (msg.SubType == 0)
|
||||
{
|
||||
_action(ipEndPoint, JsonConvert.DeserializeObject<CreateGameRoomCommand>(temp));
|
||||
}
|
||||
if (msg.SubType == 1)
|
||||
{
|
||||
_action(ipEndPoint, JsonConvert.DeserializeObject<JoinGameRoomCommand>(temp));
|
||||
}
|
||||
if (msg.SubType == 2)
|
||||
{
|
||||
_action(ipEndPoint, JsonConvert.DeserializeObject<GameRoomReadyCommand>(temp));
|
||||
}
|
||||
if (msg.SubType == 3)
|
||||
{
|
||||
_action(ipEndPoint, JsonConvert.DeserializeObject<GameRoomStartCommand>(temp));
|
||||
}
|
||||
|
||||
if (msg.SubType == 4)
|
||||
{
|
||||
_action(ipEndPoint, JsonConvert.DeserializeObject<GameRoomKickCommand>(temp));
|
||||
}
|
||||
if (msg.SubType == 5)
|
||||
{
|
||||
_action(ipEndPoint, JsonConvert.DeserializeObject<GameRoomProcessCommand>(temp));
|
||||
}
|
||||
if (msg.SubType == 6)
|
||||
{
|
||||
_action(ipEndPoint, JsonConvert.DeserializeObject<QueryGameRoomListCommand>(temp));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
_action(ipEndPoint, msg);
|
||||
|
||||
Reference in new issue
Block a user