private void Init(QuestTable.QuestTableData quest_table_data, int have_num, int crystal_num, QuestData.QuestRewardList reward_list) { tableData = quest_table_data; useCrystal = crystal_num; int[] array = reward_list.itemIds.ToArray(); int[] array2 = reward_list.types.ToArray(); int[] array3 = reward_list.pri.ToArray(); int num = array.Length; if (num > 0) { reward = new Reward[num]; int i = 0; for (int num2 = num; i < num2; i++) { reward[i] = new Reward(array2[i], array[i], array3[i]); } Array.Sort(reward, (Reward l, Reward r) => l.priority - r.priority); } else { reward = null; } this.num = have_num; }
public QuestInfoData(QuestTable.QuestTableData quest_table_data, QuestData.QuestRewardList reward_list, int have_num, int crystal_num, int[] mission_clear_status) { questData = new Quest(quest_table_data, have_num, crystal_num, reward_list); MissionInit(mission_clear_status); }
public Quest(QuestTable.QuestTableData quest_table_data, int have_num, int crystal_num, QuestData.QuestRewardList reward_list) { Init(quest_table_data, have_num, crystal_num, reward_list); }