static EquipmentSets() { CMOptions = new EquipmentSetsOptions(); Sets = new BinaryDataStore <Type, EquipmentSet>(VitaNexCore.SavesDirectory + "/EquipSets", "Sets") { OnSerialize = SaveSets, OnDeserialize = LoadSets }; }
static EquipmentSets() { CMOptions = new EquipmentSetsOptions(); Sets = new BinaryDataStore<Type, EquipmentSet>(VitaNexCore.SavesDirectory + "/EquipSets", "Sets") { OnSerialize = SaveSets, OnDeserialize = LoadSets }; }
static EquipmentSets() { CMOptions = new EquipmentSetsOptions(); SetTypes = TypeOfEquipmentSet.GetConstructableChildren(); Sets = new Dictionary<Type, EquipmentSet>(SetTypes.Length); foreach (var t in SetTypes) { Sets[t] = t.CreateInstanceSafe<EquipmentSet>(); } }
static EquipmentSets() { CMOptions = new EquipmentSetsOptions(); SetTypes = TypeOfEquipmentSet.GetConstructableChildren(); Sets = new Dictionary <Type, EquipmentSet>(SetTypes.Length); foreach (var t in SetTypes) { Sets[t] = t.CreateInstanceSafe <EquipmentSet>(); } }