mirror of
https://github.com/opensim/opensim.git
synced 2026-08-13 05:05:43 +08:00
Made OARs use the new serialization procedure. (TPs/crossings still on the old one) Added an options argument down the pipeline. For the time being it takes --old-guids as an option to produce <Guid> instead of <UUID>.
This commit is contained in:
@@ -160,9 +160,9 @@ namespace OpenSim.Region.CoreModules.World.Serialiser
|
||||
return SceneXmlLoader.DeserializeGroupFromXml2(xmlString);
|
||||
}
|
||||
|
||||
public string SerializeGroupToXml2(SceneObjectGroup grp)
|
||||
public string SerializeGroupToXml2(SceneObjectGroup grp, Dictionary<string, object> options)
|
||||
{
|
||||
return SceneXmlLoader.SaveGroupToXml2(grp);
|
||||
return SceneXmlLoader.SaveGroupToXml2(grp, options);
|
||||
}
|
||||
|
||||
public void SavePrimListToXml2(EntityBase[] entityList, string fileName)
|
||||
|
||||
@@ -369,7 +369,7 @@ namespace OpenSim.Region.CoreModules.World.Serialiser.Tests
|
||||
// Need to add the object to the scene so that the request to get script state succeeds
|
||||
m_scene.AddSceneObject(so);
|
||||
|
||||
string xml2 = m_serialiserModule.SerializeGroupToXml2(so);
|
||||
string xml2 = m_serialiserModule.SerializeGroupToXml2(so, new System.Collections.Generic.Dictionary<string,object>());
|
||||
|
||||
XmlTextReader xtr = new XmlTextReader(new StringReader(xml2));
|
||||
xtr.ReadStartElement("SceneObjectGroup");
|
||||
|
||||
Reference in New Issue
Block a user