adding support for Xml2 serialization format to XmlRpcLoadXMLMethod.

0.6.0-stable
Dr Scofield 2008-07-14 14:40:39 +00:00
parent 00791594ad
commit 31e5d348f6
1 changed files with 20 additions and 1 deletions

View File

@ -712,7 +712,26 @@ namespace OpenSim.ApplicationPlugins.RemoteController
responseData["switched"] = "true"; responseData["switched"] = "true";
string xml_version = "1";
if (requestData.Contains("xml_version"))
{
xml_version = (string)requestData["xml_version"];
}
switch (xml_version)
{
case "1":
m_app.SceneManager.LoadCurrentSceneFromXml(filename, true, new LLVector3(0, 0, 0)); m_app.SceneManager.LoadCurrentSceneFromXml(filename, true, new LLVector3(0, 0, 0));
break;
case "2":
m_app.SceneManager.LoadCurrentSceneFromXml2(filename);
break;
default:
throw new Exception(String.Format("unknown Xml{0} format", xml_version));
}
responseData["loaded"] = "true"; responseData["loaded"] = "true";
response.Value = responseData; response.Value = responseData;