public static void SaveToMap(Scene scene, IMapContainer map, string scenePath) { map.DeleteEntry(scenePath); using (Stream mapXmlStream = map.CreateEntry(scenePath).OpenStream()) { SerializeScene(scene, mapXmlStream); mapXmlStream.Flush(); mapXmlStream.Close(); } }