Exemplo n.º 1
0
 public void ChangeAchieveState(ref COMDT_ACHIEVEMENT_DATA data)
 {
     if (this.m_AchiveItemDic.ContainsKey(data.dwID))
     {
         this.m_AchiveItemDic[data.dwID].State    = (COM_ACHIEVEMENT_STATE)data.bState;
         this.m_AchiveItemDic[data.dwID].DoneTime = data.dwDoneTime;
         this.MostLatelyDoneAchievements.Add(data.dwID);
     }
 }
Exemplo n.º 2
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;
     }
 }
Exemplo n.º 3
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;
 }
Exemplo n.º 4
0
        public void OnAchieveStateChange(COMDT_ACHIEVEMENT_DATA achieveData)
        {
            int count = this.m_achieveList.get_Count();

            for (int i = 0; i < count; i++)
            {
                if (this.m_achieveList.get_Item(i).m_cfgId == achieveData.dwID)
                {
                    this.m_achieveList.get_Item(i).SetAchieveState(achieveData.bState);
                    return;
                }
            }
        }
Exemplo n.º 5
0
        public void OnAchieveStateChange(COMDT_ACHIEVEMENT_DATA achieveData)
        {
            int count = this.m_achieveList.Count;

            for (int i = 0; i < count; i++)
            {
                if (this.m_achieveList[i].m_cfgId == achieveData.dwID)
                {
                    this.m_achieveList[i].SetAchieveState((COM_ACHIEVEMENT_STATE)achieveData.bState);
                    return;
                }
            }
        }