31 using OpenSim.Framework;
33 using OpenSim.Region.DataSnapshot.Interfaces;
34 using OpenSim.Region.Framework.Scenes;
35 using OpenSim.Services.Interfaces;
47 private Scene m_scene = null;
49 private bool m_stale =
true;
51 #region IDataSnapshotProvider Members
57 XmlNode estatedata = factory.CreateNode(XmlNodeType.Element,
"estate",
"");
59 UUID ownerid = m_scene.RegionInfo.EstateSettings.EstateOwner;
61 UserAccount userInfo = m_scene.UserAccountService.GetUserAccount(m_scene.RegionInfo.ScopeID, ownerid);
68 firstname = userInfo.FirstName;
69 lastname = userInfo.LastName;
72 XmlNode user = factory.CreateNode(XmlNodeType.Element,
"user",
"");
78 XmlNode username = factory.CreateNode(XmlNodeType.Element,
"name",
"");
79 username.InnerText = firstname +
" " + lastname;
80 user.AppendChild(username);
82 XmlNode useruuid = factory.CreateNode(XmlNodeType.Element,
"uuid",
"");
83 useruuid.InnerText = ownerid.ToString();
84 user.AppendChild(useruuid);
86 estatedata.AppendChild(user);
89 XmlNode estatename = factory.CreateNode(XmlNodeType.Element,
"name",
"");
90 estatename.InnerText = m_scene.RegionInfo.EstateSettings.EstateName.ToString();
91 estatedata.AppendChild(estatename);
93 XmlNode estateid = factory.CreateNode(XmlNodeType.Element,
"id",
"");
94 estateid.InnerText = m_scene.RegionInfo.EstateSettings.EstateID.ToString();
95 estatedata.AppendChild(estateid);
97 XmlNode parentid = factory.CreateNode(XmlNodeType.Element,
"parentid",
"");
98 parentid.InnerText = m_scene.RegionInfo.EstateSettings.ParentEstateID.ToString();
99 estatedata.AppendChild(parentid);
101 XmlNode flags = factory.CreateNode(XmlNodeType.Element,
"flags",
"");
103 XmlAttribute teleport = (XmlAttribute)factory.CreateNode(XmlNodeType.Attribute,
"teleport",
"");
104 teleport.Value = m_scene.RegionInfo.EstateSettings.AllowDirectTeleport.ToString();
105 flags.Attributes.Append(teleport);
107 XmlAttribute publicaccess = (XmlAttribute)factory.CreateNode(XmlNodeType.Attribute,
"public",
"");
108 publicaccess.Value = m_scene.RegionInfo.EstateSettings.PublicAccess.ToString();
109 flags.Attributes.Append(publicaccess);
111 estatedata.AppendChild(flags);
123 public Scene GetParentScene
125 get {
return m_scene; }
129 get {
return "EstateSnapshot"; }
void Initialize(Scene scene, DataSnapshotManager parent)
delegate void ProviderStale(IDataSnapshotProvider provider)
Interactive OpenSim region server
XmlNode RequestSnapshotData(XmlDocument factory)