Beispiel #1
0
        // 用来在新手引导过程中,本命入口UI是否展示引导光效。
        private void SetLifeHeroFlag()
        {
            bool hasRank = false;
            bool hasActivatedLifeHero = false;

            foreach (cmd_warstatistic_history_record record in m_historyRecord)
            {
                if (!hasRank && (record.wWarType == (int)Match_ManagerDef.EMMatchType.MatchType_Rank))
                {
                    hasRank = true;
                }

                if (!hasActivatedLifeHero && IsMeetLifeHeroRule(record))
                {
                    hasActivatedLifeHero = true;
                }

                if (hasRank && hasActivatedLifeHero)
                {
                    break;
                }
            }

            m_lifeheroMatchType    = hasRank ? ELifeHeroMatchType.HAVE_MatchType_Rank : ELifeHeroMatchType.NO_MatchType_Rank;
            m_lifeHeroActivateType = hasActivatedLifeHero ? LifeHeroActivateType.CAN_ACTIVATION : LifeHeroActivateType.NO_ACTIVATION;
        }
Beispiel #2
0
 public void Clear()
 {
     m_lifeHeroActivateType = LifeHeroActivateType.INVALID_DATA;
     m_lifeheroMatchType    = ELifeHeroMatchType.INVALID_DATA;
     EntityFactory.RemoveEntityNumPropHandler(OnCommand_UpdateNumProp);
 }