示例#1
0
        static Portals()
        {
            CSOptions = new PortalsOptions();

            PortalList = new BinaryDataStore<PortalSerial, Portal>(
                VitaNexCore.SavesDirectory + "/Portals", "PortalsList")
            {
                Async = true,
                OnSerialize = SerializePortals,
                OnDeserialize = DeserializePortals
            };

            PlayerProfiles = new BinaryDataStore<PlayerMobile, PlayerPortalProfile>(
                VitaNexCore.SavesDirectory + "/Portals", "PlayerProfiles")
            {
                Async = true,
                OnSerialize = SerializePlayerProfiles,
                OnDeserialize = DeserializePlayerProfiles
            };
        }
示例#2
0
        static Portals()
        {
            CSOptions = new PortalsOptions();

            PortalList = new BinaryDataStore <PortalSerial, Portal>(
                VitaNexCore.SavesDirectory + "/Portals", "PortalsList")
            {
                Async         = true,
                OnSerialize   = SerializePortals,
                OnDeserialize = DeserializePortals
            };

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