aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2010-07-26 20:36:28 +0100
committerJustin Clark-Casey (justincc)2010-07-26 23:34:22 +0100
commitb51b2efdc8059548e1da7ac13ee858673b71592f (patch)
tree048058e0bd7bf71ddac8cc9b7985a8454f4ddd24 /OpenSim/Region/CoreModules
parentAdd EventManager.OnSceneObjectLoaded() for future use. This is fired immedia... (diff)
downloadopensim-SC-b51b2efdc8059548e1da7ac13ee858673b71592f.zip
opensim-SC-b51b2efdc8059548e1da7ac13ee858673b71592f.tar.gz
opensim-SC-b51b2efdc8059548e1da7ac13ee858673b71592f.tar.bz2
opensim-SC-b51b2efdc8059548e1da7ac13ee858673b71592f.tar.xz
Add EventManager.OnSceneObjectPreSave() for future use. This is triggered immediately before a copy of the group is persisted to storage
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r--OpenSim/Region/CoreModules/World/Media/Moap/MoapModule.cs11
1 files changed, 9 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/World/Media/Moap/MoapModule.cs b/OpenSim/Region/CoreModules/World/Media/Moap/MoapModule.cs
index 2771492..263ee57 100644
--- a/OpenSim/Region/CoreModules/World/Media/Moap/MoapModule.cs
+++ b/OpenSim/Region/CoreModules/World/Media/Moap/MoapModule.cs
@@ -101,6 +101,7 @@ namespace OpenSim.Region.CoreModules.Media.Moap
101 m_scene.EventManager.OnRegisterCaps += OnRegisterCaps; 101 m_scene.EventManager.OnRegisterCaps += OnRegisterCaps;
102 m_scene.EventManager.OnDeregisterCaps += OnDeregisterCaps; 102 m_scene.EventManager.OnDeregisterCaps += OnDeregisterCaps;
103 m_scene.EventManager.OnSceneObjectLoaded += OnSceneObjectLoaded; 103 m_scene.EventManager.OnSceneObjectLoaded += OnSceneObjectLoaded;
104 m_scene.EventManager.OnSceneObjectPreSave += OnSceneObjectPreSave;
104 } 105 }
105 106
106 public void Close() 107 public void Close()
@@ -108,6 +109,7 @@ namespace OpenSim.Region.CoreModules.Media.Moap
108 m_scene.EventManager.OnRegisterCaps -= OnRegisterCaps; 109 m_scene.EventManager.OnRegisterCaps -= OnRegisterCaps;
109 m_scene.EventManager.OnDeregisterCaps -= OnDeregisterCaps; 110 m_scene.EventManager.OnDeregisterCaps -= OnDeregisterCaps;
110 m_scene.EventManager.OnSceneObjectLoaded -= OnSceneObjectLoaded; 111 m_scene.EventManager.OnSceneObjectLoaded -= OnSceneObjectLoaded;
112 m_scene.EventManager.OnSceneObjectPreSave -= OnSceneObjectPreSave;
111 } 113 }
112 114
113 public void OnRegisterCaps(UUID agentID, Caps caps) 115 public void OnRegisterCaps(UUID agentID, Caps caps)
@@ -157,11 +159,16 @@ namespace OpenSim.Region.CoreModules.Media.Moap
157 } 159 }
158 } 160 }
159 161
160 public void OnSceneObjectLoaded(SceneObjectGroup sog) 162 public void OnSceneObjectLoaded(SceneObjectGroup so)
161 { 163 {
162 m_log.DebugFormat("[MOAP]: OnSceneObjectLoaded fired for {0} {1}", sog.Name, sog.UUID); 164 m_log.DebugFormat("[MOAP]: OnSceneObjectLoaded fired for {0} {1}", so.Name, so.UUID);
163 } 165 }
164 166
167 public void OnSceneObjectPreSave(SceneObjectGroup persistingSo, SceneObjectGroup originalSo)
168 {
169 m_log.DebugFormat("[MOAP]: OnSceneObjectPreSave fired for {0} {1}", persistingSo.Name, persistingSo.UUID);
170 }
171
165 public MediaEntry GetMediaEntry(SceneObjectPart part, int face) 172 public MediaEntry GetMediaEntry(SceneObjectPart part, int face)
166 { 173 {
167 MediaEntry me = null; 174 MediaEntry me = null;