aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/DataSnapshot/EstateSnapshot.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/DataSnapshot/EstateSnapshot.cs')
-rw-r--r--OpenSim/Region/DataSnapshot/EstateSnapshot.cs31
1 files changed, 29 insertions, 2 deletions
diff --git a/OpenSim/Region/DataSnapshot/EstateSnapshot.cs b/OpenSim/Region/DataSnapshot/EstateSnapshot.cs
index 8020713..40b96d5 100644
--- a/OpenSim/Region/DataSnapshot/EstateSnapshot.cs
+++ b/OpenSim/Region/DataSnapshot/EstateSnapshot.cs
@@ -31,12 +31,19 @@ using libsecondlife;
31using OpenSim.Region.DataSnapshot.Interfaces; 31using OpenSim.Region.DataSnapshot.Interfaces;
32using OpenSim.Region.Environment.Scenes; 32using OpenSim.Region.Environment.Scenes;
33 33
34namespace OpenSim.Region.DataSnapshot 34namespace OpenSim.Region.DataSnapshot.Providers
35{ 35{
36 public class EstateSnapshot : IDataSnapshotProvider 36 public class EstateSnapshot : IDataSnapshotProvider
37 { 37 {
38 /* This module doesn't check for changes, since it's *assumed* there are none.
39 * Nevertheless, it's possible to have changes, since all the fields are public.
40 * There's no event to subscribe to. :/
41 *
42 * I don't think anything changes the fields beyond RegionModule PostInit, however.
43 */
38 private Scene m_scene = null; 44 private Scene m_scene = null;
39 private DataSnapshotManager m_parent = null; 45 private DataSnapshotManager m_parent = null;
46 private bool m_stale = true;
40 47
41 #region IDataSnapshotProvider Members 48 #region IDataSnapshotProvider Members
42 49
@@ -70,6 +77,7 @@ namespace OpenSim.Region.DataSnapshot
70 77
71 estatedata.AppendChild(user); 78 estatedata.AppendChild(user);
72 79
80 this.Stale = false;
73 return estatedata; 81 return estatedata;
74 } 82 }
75 83
@@ -84,6 +92,25 @@ namespace OpenSim.Region.DataSnapshot
84 get { return m_scene; } 92 get { return m_scene; }
85 } 93 }
86 94
95 public String Name {
96 get { return "EstateSnapshot"; }
97 }
98
99 public bool Stale
100 {
101 get {
102 return m_stale;
103 }
104 set {
105 m_stale = value;
106
107 if (m_stale)
108 OnStale(this);
109 }
110 }
111
112 public event ProviderStale OnStale;
113
87 #endregion 114 #endregion
88 } 115 }
89} 116} \ No newline at end of file