Advertisement
Guest User

Untitled

a guest
May 22nd, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. onMatchmakingEnd(...data) {
  2.         let [message, param, err] = data;
  3.         let matchmakingInfo = this.props.matchmakingInfo;
  4.         let matchmakingInfoChange = document.getElementById('message-status');
  5.         let gameStartStatus = this.getGameStartStatus();
  6.         let getMatchmakingStartStatus = this.getMatchmakingStartStatus();
  7.  
  8.         if (param) {
  9.             let countDown = 10;
  10.             let st = setInterval(() => {
  11.                 if (countDown == 0) {
  12.                     clearInterval(st);
  13.                     //Removed commented code - refer to file history.
  14.                     if (getMatchmakingStartStatus() === true && gameStartStatus() === false) {
  15.                         // #PCF_JP_TODO: Check if it still works
  16.                         //this.startGame('No active games could be found at this time. Starting solo game...');
  17.                     }
  18.                 }
  19.                 countDown--;
  20.             }, 1000);
  21.         } else {
  22.             //Removed commented code - refer to file history.
  23.             if (getMatchmakingStartStatus() === true && gameStartStatus() === false) {
  24.                 // #PCF_JP_TODO: Check if it still works
  25.                 //this.startGame('No active games could be found at this time. Starting solo game...');
  26.             }
  27.         }
  28.         //Removed commented code - refer to file history.
  29.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement