Ejemplo n.º 1
0
        public override TransferMessage ProcessMessage()
        {
            // place the xml spawner info into a memory buffer
            MemoryStream mstream = new MemoryStream(Data);

            int processedmaps;
            int processedspawners;

            Mobile from = null;

            TransferServer.AuthEntry auth = TransferServer.GetAuthEntry(this);

            if (auth != null)
            {
                from = auth.User;
            }

            XmlSpawner.XmlLoadFromStream(mstream, "Spawn Editor MemStream", String.Empty, from, Point3D.Zero, Map.Internal, false, 0, false, out processedmaps, out processedspawners);

            return(new ReturnSpawnerSaveStatus(processedspawners, processedmaps));
        }