예제 #1
0
        static ZombieEvent()
        {
            CSOptions = new ZombieEventOptions();

            ZombieEvents = new BinaryDataStore<ZombieInstanceSerial, ZombieInstance>(
                VitaNexCore.SavesDirectory + "/Zombies", "ZombieInstances")
            {
                Async = true,
                OnSerialize = SerializeZombieEvent,
                OnDeserialize = DeserializeZombieEvent
            };

            PlayerProfiles = new BinaryDataStore<PlayerMobile, PlayerZombieProfile>(
                VitaNexCore.SavesDirectory + "/Zombies", "PlayerProfiles")
            {
                Async = true,
                OnSerialize = SerializePlayerProfiles,
                OnDeserialize = DeserializePlayerProfiles
            };
        }
예제 #2
0
        static ZombieEvent()
        {
            CSOptions = new ZombieEventOptions();

            ZombieEvents = new BinaryDataStore <ZombieInstanceSerial, ZombieInstance>(
                VitaNexCore.SavesDirectory + "/Zombies", "ZombieInstances")
            {
                Async         = true,
                OnSerialize   = SerializeZombieEvent,
                OnDeserialize = DeserializeZombieEvent
            };

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