Example #1
0
 private void ClickDecisionBtn()
 {
     MultiTools.DispLoading(true, RestrictionInput.LoadType.LARGE_IMAGE_MASK_ON);
     GameWebAPI.RespData_ColosseumMatchingValidateLogic responseData = null;
     GameWebAPI.ColosseumMatchingValidateLogic          request      = new GameWebAPI.ColosseumMatchingValidateLogic
     {
         SetSendData = delegate(GameWebAPI.ReqData_ColosseumMatchingValidateLogic param)
         {
             param.act            = 1;
             param.isMockBattle   = 1;
             param.targetUserCode = this.pvpMockTargetInput.value;
         },
         OnReceived = delegate(GameWebAPI.RespData_ColosseumMatchingValidateLogic response)
         {
             responseData = response;
         }
     };
     base.StartCoroutine(request.RunOneTime(delegate()
     {
         RestrictionInput.EndLoad();
         this.EndValidate(responseData);
     }, delegate(Exception noop)
     {
         RestrictionInput.EndLoad();
     }, null));
 }
Example #2
0
 private IEnumerator OnClickedInfoExec()
 {
     if (this.mockBattleStatus == GameWebAPI.RespData_ColosseumMockBattleRequestListLogic.MockBattleStatus.NOT_ENTRY)
     {
         APIRequestTask task = PvPUtility.RequestMockBattleEntry(true);
         yield return(base.StartCoroutine(task.Run(null, null, null)));
     }
     if (this.mockBattleStatus == GameWebAPI.RespData_ColosseumMockBattleRequestListLogic.MockBattleStatus.BATTLE_INTERRUPTION)
     {
         APIRequestTask task2 = PvPUtility.RequestColosseumBattleEnd(GameWebAPI.ReqData_ColosseumBattleEndLogic.BattleResult.DEFEAT, GameWebAPI.ReqData_ColosseumBattleEndLogic.BattleMode.MOCK_BATTLE);
         yield return(base.StartCoroutine(task2.Run(null, null, null)));
     }
     global::Debug.Log("対戦相手UserCode: " + this.data.userInfo.userCode);
     ClassSingleton <MultiBattleData> .Instance.MockBattleUserCode = this.data.userInfo.userCode.Replace(" ", string.Empty);
     GameWebAPI.RespData_ColosseumMatchingValidateLogic response = null;
     GameWebAPI.ColosseumMatchingValidateLogic          colosseumMatchingValidateLogic = new GameWebAPI.ColosseumMatchingValidateLogic();
     colosseumMatchingValidateLogic.SetSendData = delegate(GameWebAPI.ReqData_ColosseumMatchingValidateLogic param)
     {
         param.act            = 2;
         param.isMockBattle   = 1;
         param.targetUserCode = ClassSingleton <MultiBattleData> .Instance.MockBattleUserCode;
     };
     colosseumMatchingValidateLogic.OnReceived = delegate(GameWebAPI.RespData_ColosseumMatchingValidateLogic res)
     {
         response = res;
     };
     GameWebAPI.ColosseumMatchingValidateLogic request = colosseumMatchingValidateLogic;
     base.StartCoroutine(request.RunOneTime(delegate()
     {
         this.EndValidate(response);
     }, delegate(Exception noop)
     {
         RestrictionInput.EndLoad();
     }, null));
     yield break;
 }