Beispiel #1
0
        public void setOtherLogData(Variant msgData)
        {
            Variant variant  = new Variant();
            Variant variant2 = (this.g_mgr.g_gameConfM as muCLientConfig).svrGeneralConf.get_lottery(10);
            bool    flag     = variant2;

            if (flag)
            {
                variant = variant2["itm"];
            }
            Variant mainPlayerInfo = (this.g_mgr.g_netM as muNetCleint).joinWorldInfoInst.mainPlayerInfo;
            Variant variant3       = msgData["logs"];

            for (int i = 0; i < variant3.Length; i++)
            {
                Variant variant4 = variant3[i];
                bool    flag2    = mainPlayerInfo["name"] == variant4["name"] && this._selfHadLog;
                if (!flag2)
                {
                    this.logs._arr.Add(variant4);
                    bool flag3 = this.logs.Length > 20;
                    if (flag3)
                    {
                        this.logs._arr.RemoveAt(0);
                    }
                    foreach (Variant current in variant._arr)
                    {
                        bool flag4 = current["tpid"] == variant4["tpid"] && current.ContainsKey("broadcast");
                        if (flag4)
                        {
                            this.turnLogs._arr.Add(variant4);
                            break;
                        }
                    }
                    bool flag5 = this.turnLogs.Length > 10;
                    if (flag5)
                    {
                        this.turnLogs._arr.RemoveAt(0);
                    }
                }
            }
            Variant variant5 = new Variant();

            variant5["curid"] = msgData["curid"];
            variant5["logs"]  = this.logs;
            this._lgui_luckydraw.refreshLog(variant5);
            LGIUILottery lGIUILottery = (this.g_mgr.g_uiM as muUIClient).getLGUI("lottery") as LGIUILottery;
            bool         flag6        = lGIUILottery == null;

            if (!flag6)
            {
                Variant variant6 = new Variant();
                variant6["curid"] = msgData["curid"];
                variant6["logs"]  = this.logs;
                lGIUILottery.refreshLog(variant6);
            }
        }
Beispiel #2
0
        public void setSelfLogData(Variant msgData)
        {
            bool isFirstLog = this._isFirstLog;

            if (isFirstLog)
            {
                this._isFirstLog = false;
            }
            this._selfHadLog = true;
            Variant variant  = new Variant();
            Variant variant2 = new Variant();
            bool    flag     = msgData["logs"].Length > 0;

            if (flag)
            {
                variant2 = (this.g_mgr.g_gameConfM as muCLientConfig).svrGeneralConf.get_lottery(msgData["logs"][0]["lolvl"]);
            }
            bool flag2 = variant2 != null;

            if (flag2)
            {
                bool flag3 = variant2.ContainsKey("usetp");
                if (flag3)
                {
                    int num = variant2["usetp"];
                }
                variant = variant2["itm"];
            }
            Variant variant3 = msgData["logs"];

            for (int i = 0; i < variant3.Length; i++)
            {
                Variant variant4 = variant3[i];
                this.logs._arr.Add(variant4);
                bool flag4 = this.logs.Length > 20;
                if (flag4)
                {
                    this.logs._arr.RemoveAt(0);
                }
                foreach (Variant current in variant._arr)
                {
                    bool flag5 = current["id"] == variant4["tpid"];
                    if (flag5)
                    {
                        bool flag6 = !variant4.ContainsKey("exatt") && current.ContainsKey("make_att");
                        if (flag6)
                        {
                            variant4["make_att"] = current["make_att"];
                        }
                        bool flag7 = current.ContainsKey("broadcast");
                        if (flag7)
                        {
                            this.turnLogs._arr.Insert(0, variant4);
                        }
                        break;
                    }
                }
                bool flag8 = this.turnLogs.Length > 10;
                if (flag8)
                {
                    this.turnLogs._arr.RemoveAt(this.turnLogs.Length - 1);
                }
            }
            Variant variant5 = new Variant();

            variant5["logs"] = this.logs;
            this._lgui_luckydraw.refreshLog(variant5);
            LGIUILottery lGIUILottery = (this.g_mgr.g_uiM as muUIClient).getLGUI("mdlg_lottery") as LGIUILottery;
            bool         flag9        = lGIUILottery == null;

            if (!flag9)
            {
                Variant variant6 = new Variant();
                variant6["logs"] = this.logs;
                lGIUILottery.refreshLog(variant6);
            }
        }