Esempio n. 1
0
 public void InitStateData(COMDT_ACHIEVEMENT_DATA stateInfo)
 {
     this.m_cfgId   = stateInfo.dwID;
     this.m_state   = (COM_ACHIEVEMENT_STATE)stateInfo.bState;
     this.m_cfgInfo = GameDataMgr.achieveDatabin.GetDataByKey(this.m_cfgId);
     if (this.m_cfgInfo != null)
     {
         this.m_doneType = (RES_ACHIEVE_DONE_TYPE)this.m_cfgInfo.dwDoneType;
     }
 }
Esempio n. 2
0
 public CAchieveItem2(ref ResAchievement achievement)
 {
     this.ID       = achievement.dwID;
     this.DoneTime = 0u;
     this.State    = 0;
     this.DoneType = achievement.dwDoneType;
     this.Cfg      = achievement;
     this.PrevID   = achievement.dwPreAchievementID;
     this.DoneCnt  = 0;
 }
 public CAchieveItem2(ref ResAchievement achievement)
 {
     this.ID       = achievement.dwID;
     this.DoneTime = 0u;
     this.State    = COM_ACHIEVEMENT_STATE.COM_ACHIEVEMENT_STATE_UNFIN;
     this.DoneType = (RES_ACHIEVE_DONE_TYPE)achievement.dwDoneType;
     this.Cfg      = achievement;
     this.PrevID   = achievement.dwPreAchievementID;
     this.DoneCnt  = 0;
 }
Esempio n. 4
0
 public void InitStateData(COMDT_ACHIEVEMENT_DATA stateInfo)
 {
     this.m_cfgId   = stateInfo.dwID;
     this.m_state   = stateInfo.bState;
     this.m_cfgInfo = GameDataMgr.achieveDatabin.GetDataByKey(this.m_cfgId);
     if (this.m_cfgInfo == null)
     {
         return;
     }
     this.m_doneType = this.m_cfgInfo.dwDoneType;
 }
Esempio n. 5
0
        public void OnAchieveDoneDataChange(COMDT_ACHIEVEMENT_DONE_DATA doneData)
        {
            RES_ACHIEVE_DONE_TYPE dwDoneType = (RES_ACHIEVE_DONE_TYPE)doneData.dwDoneType;
            int num = (this.m_AchiveItems == null) ? 0 : this.m_AchiveItems.Count;

            for (int i = 0; i < num; i++)
            {
                if (this.m_AchiveItems != null && this.m_AchiveItems[i].DoneType == dwDoneType)
                {
                    this.m_AchiveItems[i].DoneCnt = doneData.iDoneCnt;
                }
            }
        }
Esempio n. 6
0
        public void OnAchieveDoneDataChange(COMDT_ACHIEVEMENT_DONE_DATA doneData)
        {
            RES_ACHIEVE_DONE_TYPE dwDoneType = doneData.dwDoneType;
            int num = (this.m_AchiveItems != null) ? this.m_AchiveItems.get_Count() : 0;

            for (int i = 0; i < num; i++)
            {
                if (this.m_AchiveItems != null && this.m_AchiveItems.get_Item(i).DoneType == dwDoneType)
                {
                    this.m_AchiveItems.get_Item(i).DoneCnt = doneData.iDoneCnt;
                }
            }
        }