示例#1
0
        static EquipmentSets()
        {
            CMOptions = new EquipmentSetsOptions();

            Sets = new BinaryDataStore <Type, EquipmentSet>(VitaNexCore.SavesDirectory + "/EquipSets", "Sets")
            {
                OnSerialize   = SaveSets,
                OnDeserialize = LoadSets
            };
        }
示例#2
0
		static EquipmentSets()
		{
			CMOptions = new EquipmentSetsOptions();

			Sets = new BinaryDataStore<Type, EquipmentSet>(VitaNexCore.SavesDirectory + "/EquipSets", "Sets")
			{
				OnSerialize = SaveSets,
				OnDeserialize = LoadSets
			};
		}
示例#3
0
        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>();
            }
        }
示例#4
0
        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>();
            }
        }