diff options
author | Justin Clark-Casey (justincc) | 2010-07-26 20:36:28 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2010-07-26 20:36:28 +0100 |
commit | c70d57ff983d42b6898d766eb5536e56868b3213 (patch) | |
tree | 326eb90579dd02f15ebafe5017f405e03a55ffbf /OpenSim/Region/CoreModules | |
parent | Add EventManager.OnSceneObjectLoaded() for future use. This is fired immedia... (diff) | |
download | opensim-SC-c70d57ff983d42b6898d766eb5536e56868b3213.zip opensim-SC-c70d57ff983d42b6898d766eb5536e56868b3213.tar.gz opensim-SC-c70d57ff983d42b6898d766eb5536e56868b3213.tar.bz2 opensim-SC-c70d57ff983d42b6898d766eb5536e56868b3213.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.cs | 11 |
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; |