From e4f85bcbe74696d5863d318cf0b761636ec8cd0d Mon Sep 17 00:00:00 2001 From: MW Date: Wed, 25 Jun 2008 19:46:48 +0000 Subject: [PATCH] forgotten methods in SceneManager for the terrain serialising. --- OpenSim/Region/Environment/Scenes/SceneManager.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/OpenSim/Region/Environment/Scenes/SceneManager.cs b/OpenSim/Region/Environment/Scenes/SceneManager.cs index 8fee27feeb..add80813f0 100644 --- a/OpenSim/Region/Environment/Scenes/SceneManager.cs +++ b/OpenSim/Region/Environment/Scenes/SceneManager.cs @@ -232,6 +232,17 @@ namespace OpenSim.Region.Environment.Scenes CurrentOrFirstScene.LoadPrimsFromArchive(filename); } + + public string SaveCurrentSceneMapToXmlString() + { + return CurrentOrFirstScene.Heightmap.SaveToXmlString(); + } + + public void LoadCurrenSceneMapFromXmlString(string mapData) + { + CurrentOrFirstScene.Heightmap.LoadFromXmlString(mapData); + } + [Obsolete("TODO: Remove this warning by 0.7")] public bool RunTerrainCmdOnCurrentScene(string[] cmdparams, ref string result) {