public void OnAchieveDoneDataChange(COMDT_ACHIEVEMENT_DONE_DATA donwData) { int count = this.m_achieveList.get_Count(); for (int i = 0; i < count; i++) { if (this.m_achieveList.get_Item(i).m_doneType == donwData.dwDoneType) { this.m_achieveList.get_Item(i).SetAchieveDoneCnt(donwData.iDoneCnt); } } }
public void OnAchieveDoneDataChange(COMDT_ACHIEVEMENT_DONE_DATA donwData) { int count = this.m_achieveList.Count; for (int i = 0; i < count; i++) { if (this.m_achieveList[i].m_doneType == ((RES_ACHIEVE_DONE_TYPE)donwData.dwDoneType)) { this.m_achieveList[i].SetAchieveDoneCnt(donwData.iDoneCnt); } } }
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; } } }
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; } } }