Exemplo n.º 1
0
        public Sector(Stream stream, string mediaType)
        {
            WorldCollection wc = new WorldCollection();

            wc.Deserialize(stream, mediaType);
            foreach (World world in wc)
            {
                world.Sector = this;
            }
            m_data = wc;
        }
Exemplo n.º 2
0
        internal Sector(Stream stream, string mediaType, ErrorLogger?errors)
            : this()
        {
            WorldCollection wc = new WorldCollection(isUserData: true);

            wc.Deserialize(stream, mediaType, errors);
            foreach (World world in wc)
            {
                world.Sector = this;
            }
            worlds = wc;
        }