public CQuest GetLastQuest() { if (this.m_stQuestGroupInfo.m_QuestList.Count <= 0) { return(null); } for (int i = 0; i < 200; i++) { if (this.m_stQuestGroupInfo.m_QuestUniqueBit.ContainsKey(i)) { QUEST_SORTID qUEST_SORTID = this.m_stQuestGroupInfo.m_QuestUniqueBit[i]; if (qUEST_SORTID != null) { CQuest questByQuestUnique = NrTSingleton <NkQuestManager> .Instance.GetQuestByQuestUnique(qUEST_SORTID.m_strQuestUnique); CQuest questByQuestUnique2 = NrTSingleton <NkQuestManager> .Instance.GetQuestByQuestUnique(questByQuestUnique.GetQuestCommon().strNextQuestUnique); if (questByQuestUnique.GetQuestGroupUnique() != questByQuestUnique2.GetQuestGroupUnique()) { return(questByQuestUnique2); } } } } return(null); }
public void SetQuestUnique(CQuest kQuest) { int num = 1; USER_QUEST_COMPLETE_INFO completeQuestInfo = NrTSingleton <NkQuestManager> .Instance.GetCompleteQuestInfo(kQuest.GetQuestGroupUnique()); if (completeQuestInfo != null) { num = completeQuestInfo.i32LastGrade; } this.m_i32CurGrade = num; this.SetGrade(num); }