public static void AddQuestItem(uint QID, uint SID, byte SubSID, uint ItemID, byte ammount) { Dictionary <uint, List <questI> > item; List <questI> tmp = new List <questI>(); if (QuestItem.ContainsKey(QID)) { item = QuestItem[QID]; } else { item = new Dictionary <uint, List <questI> >(); QuestItem.Add(QID, item); } if (item.ContainsKey(SID) == false) { item.Add(SID, tmp); } questI I = new questI(); I.SubSID = SubSID; I.id = ItemID; I.completed = false; I.ammount = ammount; item[SID].Add(I); }
public static void AddQuestItem(uint QID, uint SID, byte SubSID, uint ItemID, byte ammount) { Dictionary<uint, List<questI>> item; List<questI> tmp = new List<questI>(); if (QuestItem.ContainsKey(QID)) { item = QuestItem[QID]; } else { item = new Dictionary<uint, List<questI>>(); QuestItem.Add(QID, item); } if (item.ContainsKey(SID) == false) item.Add(SID, tmp); questI I = new questI(); I.SubSID = SubSID; I.id = ItemID; I.completed = false; I.ammount = ammount; item[SID].Add(I); }