Exemplo n.º 1
0
 public bool JoinGame()
 {
     _client.AsyncPingRequest();
     if (!_client.TryWaitJoinGameRequest(out var joinResponse, TIME_OUT))
     {
         log.LogError("RawManager: Timed out on JoinGame");
         return(false);
     }
     else if (joinResponse.JoinGame.Error != ResponseJoinGame.Types.Error.Unset)
     {
         log.LogError($"RawManager: {joinResponse.JoinGame.Error} : {joinResponse.JoinGame.ErrorDetails}");
         return(false);
     }
     return(true);
 }