Exemplo n.º 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
            };
        }
Exemplo n.º 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
            };
        }