Ejemplo n.º 1
0
        private Dictionary <string, string> GetExtraInfos()
        {
            Dictionary <string, string> dictionary = new Dictionary <string, string>();
            SLevelContext curLvelContext           = Singleton <BattleLogic> .GetInstance().GetCurLvelContext();

            if (curLvelContext != null)
            {
                dictionary.Add("MODE", curLvelContext.m_gameMatchName);
            }
            CRoleInfo masterRoleInfo = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo();

            if (masterRoleInfo != null)
            {
                ResRankGradeConf dataByKey = GameDataMgr.rankGradeDatabin.GetDataByKey((uint)masterRoleInfo.m_rankGrade);
                if (dataByKey != null)
                {
                    dictionary.Add("GRADE", dataByKey.szGradeDesc);
                }
            }
            if (!string.IsNullOrEmpty(this.m_strHostPlayerName))
            {
                int    num  = this.m_strHostPlayerName.IndexOf('(');
                string text = this.m_strHostPlayerName.Substring(num + 1, this.m_strHostPlayerName.get_Length() - num - 2);
                dictionary.Add("HERO", text);
            }
            dictionary.Add("KILLNUM", this.m_iHostPlaterKillNum.ToString());
            dictionary.Add("DEADNUM", this.m_iHostPlaterDeadNum.ToString());
            dictionary.Add("ASSISTNUM", this.m_iHostPlaterAssistNum.ToString());
            int num2 = this.ConvertMaxMultiKillPriorityToResDef();

            if (num2 > 2)
            {
                ResMultiKill dataByKey2 = GameDataMgr.multiKillDatabin.GetDataByKey((long)num2);
                if (dataByKey2 != null)
                {
                    dictionary.Add("MULTIKILL", dataByKey2.szAchievementName);
                }
            }
            return(dictionary);
        }
Ejemplo n.º 2
0
        private string GetVideoName()
        {
            string text = Singleton <CTextManager> .GetInstance().GetText("RecordMomentVideoNameHeader");

            SLevelContext curLvelContext = Singleton <BattleLogic> .GetInstance().GetCurLvelContext();

            if (curLvelContext != null)
            {
                text += curLvelContext.m_levelName;
                if (curLvelContext.IsGameTypeLadder())
                {
                    text += curLvelContext.m_gameMatchName;
                }
            }
            if (this.m_bIsMvp)
            {
                text += "MVP";
            }
            if (!string.IsNullOrEmpty(this.m_strHostPlayerName))
            {
                int    num   = this.m_strHostPlayerName.IndexOf('(');
                string text2 = this.m_strHostPlayerName.Substring(num + 1, this.m_strHostPlayerName.get_Length() - num - 2);
                text += text2;
            }
            int num2 = this.ConvertMaxMultiKillPriorityToResDef();

            if (num2 > 2)
            {
                ResMultiKill dataByKey = GameDataMgr.multiKillDatabin.GetDataByKey((long)num2);
                if (dataByKey != null)
                {
                    text += dataByKey.szAchievementName;
                }
            }
            return(text + Singleton <CTextManager> .GetInstance().GetText("RecordMomentVideoNameTail"));
        }