コード例 #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);
 }
コード例 #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);
        }
コード例 #3
0
ファイル: CTaskModel.cs プロジェクト: isoundy000/wzry-1
        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);
        }