예제 #1
0
 private void OnEnd_SellItem(P2CSellItem ret)
 {
     this.StopWaitCoroutine();
     if (ret != null && ret.retaCode == 0)
     {
         if (this.DealingShop != null)
         {
             this.DealingShop.DealCounter++;
             this.DealingShop.RollbackStack.Push(this.data.CurRollbackInfo);
             this.data.CurRollbackInfo = null;
         }
     }
     else
     {
         MobaMessageManagerTools.SendClientMsg(ClientC2C.BattleShop_err, "卖出失败,errCode=" + ret.retaCode, false);
     }
     if (this.DealingShop != null)
     {
         this.DealingShop.State = EBattleShopState.eIdle;
         this.DealingShop       = null;
     }
     this.CurHItem = null;
 }
예제 #2
0
        private void OnMsg_C2P_SellItem(MobaMessage msg)
        {
            P2CSellItem probufMsg = msg.GetProbufMsg <P2CSellItem>();

            this.OnEnd_SellItem(probufMsg);
        }