static TrashCollection()
        {
            HandlerTypes = typeof(BaseTrashHandler).GetConstructableChildren();

            CMOptions = new TrashCollectionOptions();

            Handlers = new BinaryDataStore <string, BaseTrashHandler>(VitaNexCore.SavesDirectory + "/TrashCollection", "Handlers")
            {
                OnSerialize   = SerializeHandlers,
                OnDeserialize = DeserializeHandlers
            };

            Profiles = new BinaryDataStore <Mobile, TrashProfile>(VitaNexCore.SavesDirectory + "/TrashCollection", "Profiles")
            {
                Async         = true,
                OnSerialize   = SerializeProfiles,
                OnDeserialize = DeserializeProfiles
            };
        }
Example #2
0
		static TrashCollection()
		{
			HandlerTypes = typeof(BaseTrashHandler).GetConstructableChildren();

			CMOptions = new TrashCollectionOptions();

			Handlers = new BinaryDataStore<string, BaseTrashHandler>(VitaNexCore.SavesDirectory + "/TrashCollection", "Handlers")
			{
				OnSerialize = SerializeHandlers,
				OnDeserialize = DeserializeHandlers
			};

			Profiles = new BinaryDataStore<Mobile, TrashProfile>(VitaNexCore.SavesDirectory + "/TrashCollection", "Profiles")
			{
				Async = true,
				OnSerialize = SerializeProfiles,
				OnDeserialize = DeserializeProfiles
			};
		}