Esempio n. 1
0
        public void AddRankData(CSCommon.eRankType type, int addvalue)
        {
            switch (type)
            {
            case CSCommon.eRankType.Exploit:
            {
                CheckGetExploitBox(this.PlayerData.RankData.Exploit, addvalue);
                this.PlayerData.RankData.Exploit += addvalue;
            }
            break;

            case CSCommon.eRankType.Prestige:
                break;
            }
        }
Esempio n. 2
0
        public void GetRankName(CSCommon.eRankType type, ref string sort, ref string rankname, ref string rankatt)
        {
            switch (type)
            {
            case CSCommon.eRankType.Exploit:
            {
                sort     = "Exploit Desc";
                rankname = "ExploitRank";
                rankatt  = "Exploit";
            }
            break;

            case CSCommon.eRankType.Prestige:
            {
                sort     = "Prestige Desc";
                rankname = "PrestigeRank";
                rankatt  = "Prestige";
            }
            break;
            }
        }
Esempio n. 3
0
        //历练各种排行榜
        private void _UpdateRank(int ranknum, string planesCondition, CSCommon.eRankType type)
        {
            string sort     = "";
            string rankname = "";
            string rankatt  = "";

            GetRankName(type, ref sort, ref rankname, ref rankatt);
            var temp = mDataSet.Tables["RankData"].Select(planesCondition, sort);

            for (int i = 0; i < temp.Count(); i++)
            {
                if (i < ranknum)
                {
                    temp[i][rankname] = i + 1;
                }
                else
                {
                    temp[i][rankname] = 0;
                }
                temp[i][rankatt]     = 0;
                temp[i]["Challenge"] = 0;
                temp[i]["KillEnemy"] = 0;
            }
        }