Thank you very much KMeisthax for DataSnapshot 1.1

to enhance search capability on OpenSim sims using
external search engines such as Metaversink.com and
others.
This commit is contained in:
Charles Krinke
2008-05-17 15:47:08 +00:00
parent 06b1535ec5
commit f6a4f8844f
9 changed files with 786 additions and 327 deletions

View File

@@ -31,12 +31,19 @@ using libsecondlife;
using OpenSim.Region.DataSnapshot.Interfaces;
using OpenSim.Region.Environment.Scenes;
namespace OpenSim.Region.DataSnapshot
namespace OpenSim.Region.DataSnapshot.Providers
{
public class EstateSnapshot : IDataSnapshotProvider
{
/* This module doesn't check for changes, since it's *assumed* there are none.
* Nevertheless, it's possible to have changes, since all the fields are public.
* There's no event to subscribe to. :/
*
* I don't think anything changes the fields beyond RegionModule PostInit, however.
*/
private Scene m_scene = null;
private DataSnapshotManager m_parent = null;
private bool m_stale = true;
#region IDataSnapshotProvider Members
@@ -70,6 +77,7 @@ namespace OpenSim.Region.DataSnapshot
estatedata.AppendChild(user);
this.Stale = false;
return estatedata;
}
@@ -84,6 +92,25 @@ namespace OpenSim.Region.DataSnapshot
get { return m_scene; }
}
public String Name {
get { return "EstateSnapshot"; }
}
public bool Stale
{
get {
return m_stale;
}
set {
m_stale = value;
if (m_stale)
OnStale(this);
}
}
public event ProviderStale OnStale;
#endregion
}
}
}