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 + "'}"); } }
public Task <BodyResponse <JoinGameRoomMqResponse> > JoinRoom(JoinGameRoomMqCommand joinInfo) { return(_gameRoomManager.JoinRoom(joinInfo.Id, joinInfo.RoomId)); }
public Task <WrappedResponse <JoinGameRoomMqResponse> > JoinRoom(JoinGameRoomMqCmd joinInfo) { return(_gameRoomManager.JoinRoom(joinInfo.Id, joinInfo.RoomId)); }