コード例 #1
0
 public string JoinGameRoom(string args)
 {
     try
     {
         var    playerIdStr    = JSONSerilizer.GetJsonNode(args, "playerId");
         var    roomNum        = JSONSerilizer.GetJsonNode(args, "roomNum");
         string hasJoinPlayers = roomManager.JoinRoom(Guid.Parse(playerIdStr), Convert.ToInt32(roomNum));
         //SendJoin();
         return("{ 'IsSuccess':1,'HasJoinPlayer':'" + hasJoinPlayers + "'}");
     }
     catch (Exception ex)
     {
         return("{ 'IsSuccess':0,'msg':'" + ex.Message + "'}");
     }
 }
コード例 #2
0
 public Task <BodyResponse <JoinGameRoomMqResponse> > JoinRoom(JoinGameRoomMqCommand joinInfo)
 {
     return(_gameRoomManager.JoinRoom(joinInfo.Id, joinInfo.RoomId));
 }
コード例 #3
0
 public Task <WrappedResponse <JoinGameRoomMqResponse> > JoinRoom(JoinGameRoomMqCmd joinInfo)
 {
     return(_gameRoomManager.JoinRoom(joinInfo.Id, joinInfo.RoomId));
 }