aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/EventManager.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2010-07-28 19:23:30 +0100
committerJustin Clark-Casey (justincc)2010-07-28 19:23:30 +0100
commit0f15ccb2cf994c64fb8c7f71a64721a3e5fe3085 (patch)
tree152db712bfc35a161851f870506eb55c5006f2a4 /OpenSim/Region/Framework/Scenes/EventManager.cs
parentFix problem where changes to media textures for prims duplicated by shify cop... (diff)
downloadopensim-SC_OLD-0f15ccb2cf994c64fb8c7f71a64721a3e5fe3085.zip
opensim-SC_OLD-0f15ccb2cf994c64fb8c7f71a64721a3e5fe3085.tar.gz
opensim-SC_OLD-0f15ccb2cf994c64fb8c7f71a64721a3e5fe3085.tar.bz2
opensim-SC_OLD-0f15ccb2cf994c64fb8c7f71a64721a3e5fe3085.tar.xz
relocate moap specific cloning code to MoapModule
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/EventManager.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/EventManager.cs29
1 files changed, 28 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/EventManager.cs b/OpenSim/Region/Framework/Scenes/EventManager.cs
index 3b8d727..0a9a29e 100644
--- a/OpenSim/Region/Framework/Scenes/EventManager.cs
+++ b/OpenSim/Region/Framework/Scenes/EventManager.cs
@@ -350,6 +350,12 @@ namespace OpenSim.Region.Framework.Scenes
350 /// </param> 350 /// </param>
351 public event SceneObjectPreSaveDelegate OnSceneObjectPreSave; 351 public event SceneObjectPreSaveDelegate OnSceneObjectPreSave;
352 public delegate void SceneObjectPreSaveDelegate(SceneObjectGroup persistingSo, SceneObjectGroup originalSo); 352 public delegate void SceneObjectPreSaveDelegate(SceneObjectGroup persistingSo, SceneObjectGroup originalSo);
353
354 /// <summary>
355 /// Called when a scene object part is cloned within the region.
356 /// </summary>
357 public event SceneObjectPartCopyDelegate OnSceneObjectPartCopy;
358 public delegate void SceneObjectPartCopyDelegate(SceneObjectPart copy, SceneObjectPart original);
353 359
354 public delegate void RegionUp(GridRegion region); 360 public delegate void RegionUp(GridRegion region);
355 public event RegionUp OnRegionUp; 361 public event RegionUp OnRegionUp;
@@ -2073,6 +2079,27 @@ namespace OpenSim.Region.Framework.Scenes
2073 } 2079 }
2074 } 2080 }
2075 } 2081 }
2076 } 2082 }
2083
2084 public void TriggerOnSceneObjectPartCopy(SceneObjectPart copy, SceneObjectPart original)
2085 {
2086 SceneObjectPartCopyDelegate handler = OnSceneObjectPartCopy;
2087 if (handler != null)
2088 {
2089 foreach (SceneObjectPartCopyDelegate d in handler.GetInvocationList())
2090 {
2091 try
2092 {
2093 d(copy, original);
2094 }
2095 catch (Exception e)
2096 {
2097 m_log.ErrorFormat(
2098 "[EVENT MANAGER]: Delegate for TriggerOnSceneObjectPartCopy failed - continuing. {0} {1}",
2099 e.Message, e.StackTrace);
2100 }
2101 }
2102 }
2103 }
2077 } 2104 }
2078} \ No newline at end of file 2105} \ No newline at end of file