Ejemplo n.º 1
0
 public bool IsLevelNode_RedDot(LevelRewardData levelRewardData)
 {
     if (levelRewardData != null)
     {
         bool flag = false;
         if (!Singleton <CTaskSys> .get_instance().model.IsGetLevelReward(levelRewardData.m_level) && (ulong)Singleton <CRoleInfoManager> .get_instance().GetMasterRoleInfo().PvpLevel >= (ulong)((long)levelRewardData.m_level))
         {
             flag = true;
         }
         if (flag || levelRewardData.GetHaveDoneTaskCount() > 0)
         {
             return(true);
         }
     }
     return(false);
 }
Ejemplo n.º 2
0
        public int GetMainTask_RedDotCount()
        {
            int num = 0;

            for (int i = 0; i < this.m_levelRewardDataMap.get_Count(); i++)
            {
                LevelRewardData levelRewardData = this.m_levelRewardDataMap.get_Item(i);
                if (levelRewardData != null)
                {
                    bool flag = false;
                    if (!Singleton <CTaskSys> .get_instance().model.IsGetLevelReward(levelRewardData.m_level) && (ulong)Singleton <CRoleInfoManager> .get_instance().GetMasterRoleInfo().PvpLevel >= (ulong)((long)levelRewardData.m_level))
                    {
                        flag = true;
                    }
                    if (flag || levelRewardData.GetHaveDoneTaskCount() > 0)
                    {
                        num++;
                    }
                }
            }
            return(num);
        }
Ejemplo n.º 3
0
        public int GetMainTask_RedDotCount()
        {
            int num = 0;

            for (int i = 0; i < this.m_levelRewardDataMap.Count; i++)
            {
                LevelRewardData data = this.m_levelRewardDataMap[i];
                if (data != null)
                {
                    bool flag = false;
                    if (!Singleton <CTaskSys> .instance.model.IsGetLevelReward(data.m_level) && (Singleton <CRoleInfoManager> .instance.GetMasterRoleInfo().PvpLevel >= data.m_level))
                    {
                        flag = true;
                    }
                    if (flag || (data.GetHaveDoneTaskCount() > 0))
                    {
                        num++;
                    }
                }
            }
            return(num);
        }