static EventInvasions()
        {
            CSOptions = new EventInvasionsOptions();

            Invasions = new BinaryDataStore<InvasionSerial, Invasion>(
                VitaNexCore.SavesDirectory + "/EventInvasions", "Invasions")
            {
                Async = true,
                OnSerialize = SerializeInvasions,
                OnDeserialize = DeserializeInvasions
            };

            PlayerProfiles = new BinaryDataStore<PlayerMobile, PlayerInvasionProfile>(
                VitaNexCore.SavesDirectory + "/EventInvasions", "PlayerProfiles")
            {
                Async = true,
                OnSerialize = SerializePlayerProfiles,
                OnDeserialize = DeserializePlayerProfiles
            };
        }
Exemple #2
0
        static EventInvasions()
        {
            CSOptions = new EventInvasionsOptions();

            Invasions = new BinaryDataStore <InvasionSerial, Invasion>(
                VitaNexCore.SavesDirectory + "/EventInvasions", "Invasions")
            {
                Async         = true,
                OnSerialize   = SerializeInvasions,
                OnDeserialize = DeserializeInvasions
            };

            PlayerProfiles = new BinaryDataStore <PlayerMobile, PlayerInvasionProfile>(
                VitaNexCore.SavesDirectory + "/EventInvasions", "PlayerProfiles")
            {
                Async         = true,
                OnSerialize   = SerializePlayerProfiles,
                OnDeserialize = DeserializePlayerProfiles
            };
        }