internal static void Initialize(Config.Stream os, Config.LoadErrors errors) { all = new Config.KeyedList<int, DataLoot>(); for (var c = os.ReadSize(); c > 0; c--) { var self = _create(os); all.Add(self.Lootid, self); if (self.Ename.Trim().Length == 0) continue; switch(self.Ename.Trim()) { case "combo1": if (Combo1 != null) errors.EnumDup("loot", self.ToString()); Combo1 = self; break; case "combo2": if (Combo2 != null) errors.EnumDup("loot", self.ToString()); Combo2 = self; break; case "combo3": if (Combo3 != null) errors.EnumDup("loot", self.ToString()); Combo3 = self; break; default: errors.EnumDataAdd("loot", self.ToString()); break; } } if (Combo1 == null) errors.EnumNull("loot", "combo1"); if (Combo2 == null) errors.EnumNull("loot", "combo2"); if (Combo3 == null) errors.EnumNull("loot", "combo3"); }