Added ToXml2() to ISceneObject, so that components other than regions can use this abstraction.

arthursv
Diva Canto 2009-08-06 16:41:24 -07:00
parent ed3b21ce4e
commit ea940d98f9
2 changed files with 7 additions and 0 deletions

View File

@ -34,6 +34,7 @@ namespace OpenSim.Framework
{
UUID UUID { get; }
ISceneObject CloneForNewScene();
string ToXml2();
string ExtraToXmlString();
void ExtraFromXmlString(string xmlstr);
string GetStateSnapshot();

View File

@ -37,6 +37,7 @@ using OpenMetaverse.Packets;
using OpenSim.Framework;
using OpenSim.Region.Framework.Interfaces;
using OpenSim.Region.Physics.Manager;
using OpenSim.Region.Framework.Scenes.Serialization;
namespace OpenSim.Region.Framework.Scenes
{
@ -3366,6 +3367,11 @@ namespace OpenSim.Region.Framework.Scenes
return sog;
}
public virtual string ToXml2()
{
return SceneObjectSerializer.ToXml2Format(this);
}
public virtual string ExtraToXmlString()
{
return "<ExtraFromAssetID>" + GetFromAssetID().ToString() + "</ExtraFromAssetID>";