Ejemplo n.º 1
0
        public void tradeDone(Variant msgData)
        {
            Variant    mainPlayerInfo = (this.g_mgr.g_netM as muNetCleint).joinWorldInfoInst.mainPlayerInfo;
            LGIUITrade lGIUITrade     = (this.g_mgr.g_uiM as muUIClient).getLGUI("trade") as LGIUITrade;
            bool       flag           = msgData["cid"] == mainPlayerInfo["cid"];

            if (flag)
            {
                this._selfTradeDone = true;
                lGIUITrade.setTradeDone(this._selfTradeDone, this._targetTradeDone);
                bool targetTradeDone = this._targetTradeDone;
                if (targetTradeDone)
                {
                    this.initStatus();
                }
            }
            else
            {
                this._targetTradeDone = true;
                lGIUITrade.setTradeDone(this._selfTradeDone, this._targetTradeDone);
                bool selfTradeDone = this._selfTradeDone;
                if (selfTradeDone)
                {
                    this.initStatus();
                }
            }
            bool flag2 = this._selfTradeDone && this._targetTradeDone;

            if (flag2)
            {
            }
        }
Ejemplo n.º 2
0
        public void addItem(Variant msgData)
        {
            Variant    mainPlayerInfo = (this.g_mgr.g_netM as muNetCleint).joinWorldInfoInst.mainPlayerInfo;
            LGIUITrade lGIUITrade     = (this.g_mgr.g_uiM as muUIClient).getLGUI("trade") as LGIUITrade;
            bool       flag           = msgData["cid"] == mainPlayerInfo["cid"];

            if (flag)
            {
                lGIUITrade.addSelfItem(msgData);
            }
            else
            {
                lGIUITrade.addTargetItem(msgData);
            }
        }
Ejemplo n.º 3
0
        public void startTrade(Variant msgData)
        {
            Variant    mainPlayerInfo = (this.g_mgr.g_netM as muNetCleint).joinWorldInfoInst.mainPlayerInfo;
            LGIUITrade lGIUITrade     = (this.g_mgr.g_uiM as muUIClient).getLGUI("trade") as LGIUITrade;
            bool       flag           = msgData["cid"] == mainPlayerInfo["cid"];

            if (flag)
            {
                lGIUITrade.showTrade(this._traderCid);
            }
            else
            {
                lGIUITrade.showTrade(msgData["cid"]);
            }
        }
Ejemplo n.º 4
0
        public void lockTrade(Variant msgData)
        {
            Variant    mainPlayerInfo = (this.g_mgr.g_netM as muNetCleint).joinWorldInfoInst.mainPlayerInfo;
            LGIUITrade lGIUITrade     = (this.g_mgr.g_uiM as muUIClient).getLGUI("trade") as LGIUITrade;
            bool       flag           = msgData["cid"] == mainPlayerInfo["cid"];

            if (flag)
            {
                this._selfLocked = msgData["locked"];
                lGIUITrade.setLockStatus(this._selfLocked, this._targetLocked);
            }
            else
            {
                this._targetLocked = msgData["locked"];
                lGIUITrade.setLockStatus(this._selfLocked, this._targetLocked);
            }
        }