Exemplo n.º 1
0
		static Voting()
		{
			SiteTypes = typeof(IVoteSite).GetConstructableChildren();

			CMOptions = new VotingOptions();

			VoteSites = new BinaryDataStore<int, IVoteSite>(VitaNexCore.SavesDirectory + "/Voting", "Sites") {
				OnSerialize = SerializeVoteSites,
				OnDeserialize = DeserializeVoteSites
			};

			Profiles = new BinaryDataStore<PlayerMobile, VoteProfile>(VitaNexCore.SavesDirectory + "/Voting", "Profiles")
			{
				Async = true,
				OnSerialize = SerializeProfiles,
				OnDeserialize = DeserializeProfiles
			};
		}
Exemplo n.º 2
0
        static Voting()
        {
            SiteTypes = typeof(IVoteSite).GetConstructableChildren();

            CMOptions = new VotingOptions();

            VoteSites = new BinaryDataStore <int, IVoteSite>(VitaNexCore.SavesDirectory + "/Voting", "Sites")
            {
                OnSerialize   = SerializeVoteSites,
                OnDeserialize = DeserializeVoteSites
            };

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