diff options
author | Melanie | 2010-02-02 03:56:29 +0000 |
---|---|---|
committer | Melanie | 2010-02-02 03:56:29 +0000 |
commit | d5ed92cf3892c507a31da587deb394e8d5842ed6 (patch) | |
tree | 270646e8dbf76aec39b83cc77a551ecf9e43f011 /OpenSim/Region/Framework/Scenes/EventManager.cs | |
parent | Small fix for a spurious exception (diff) | |
parent | Revert "improve locking of m_items in SceneObjectPartInventory" (diff) | |
download | opensim-SC_OLD-d5ed92cf3892c507a31da587deb394e8d5842ed6.zip opensim-SC_OLD-d5ed92cf3892c507a31da587deb394e8d5842ed6.tar.gz opensim-SC_OLD-d5ed92cf3892c507a31da587deb394e8d5842ed6.tar.bz2 opensim-SC_OLD-d5ed92cf3892c507a31da587deb394e8d5842ed6.tar.xz |
Merge branch 'master' into careminster
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/EventManager.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/EventManager.cs | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/EventManager.cs b/OpenSim/Region/Framework/Scenes/EventManager.cs index 8f0b866..139fda0 100644 --- a/OpenSim/Region/Framework/Scenes/EventManager.cs +++ b/OpenSim/Region/Framework/Scenes/EventManager.cs | |||
@@ -104,6 +104,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
104 | public event OnSetRootAgentSceneDelegate OnSetRootAgentScene; | 104 | public event OnSetRootAgentSceneDelegate OnSetRootAgentScene; |
105 | 105 | ||
106 | public event ObjectGrabDelegate OnObjectGrab; | 106 | public event ObjectGrabDelegate OnObjectGrab; |
107 | public event ObjectGrabDelegate OnObjectGrabbing; | ||
107 | public event ObjectDeGrabDelegate OnObjectDeGrab; | 108 | public event ObjectDeGrabDelegate OnObjectDeGrab; |
108 | public event ScriptResetDelegate OnScriptReset; | 109 | public event ScriptResetDelegate OnScriptReset; |
109 | 110 | ||
@@ -316,9 +317,10 @@ namespace OpenSim.Region.Framework.Scenes | |||
316 | public event EmptyScriptCompileQueue OnEmptyScriptCompileQueue; | 317 | public event EmptyScriptCompileQueue OnEmptyScriptCompileQueue; |
317 | 318 | ||
318 | /// <summary> | 319 | /// <summary> |
319 | /// Called whenever an object is attached, or detached | 320 | /// Called whenever an object is attached, or detached from an in-world presence. |
320 | /// from an in-world presence. | ||
321 | /// </summary> | 321 | /// </summary> |
322 | /// If the object is being attached, then the avatarID will be present. If the object is being detached then | ||
323 | /// the avatarID is UUID.Zero (I know, this doesn't make much sense but now it's historical). | ||
322 | public delegate void Attach(uint localID, UUID itemID, UUID avatarID); | 324 | public delegate void Attach(uint localID, UUID itemID, UUID avatarID); |
323 | public event Attach OnAttach; | 325 | public event Attach OnAttach; |
324 | 326 | ||
@@ -412,6 +414,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
412 | private OnParcelPrimCountAddDelegate handlerParcelPrimCountAdd = null; //OnParcelPrimCountAdd; | 414 | private OnParcelPrimCountAddDelegate handlerParcelPrimCountAdd = null; //OnParcelPrimCountAdd; |
413 | private OnShutdownDelegate handlerShutdown = null; //OnShutdown; | 415 | private OnShutdownDelegate handlerShutdown = null; //OnShutdown; |
414 | private ObjectGrabDelegate handlerObjectGrab = null; //OnObjectGrab; | 416 | private ObjectGrabDelegate handlerObjectGrab = null; //OnObjectGrab; |
417 | private ObjectGrabDelegate handlerObjectGrabbing = null; //OnObjectGrabbing; | ||
415 | private ObjectDeGrabDelegate handlerObjectDeGrab = null; //OnObjectDeGrab; | 418 | private ObjectDeGrabDelegate handlerObjectDeGrab = null; //OnObjectDeGrab; |
416 | private ScriptResetDelegate handlerScriptReset = null; // OnScriptReset | 419 | private ScriptResetDelegate handlerScriptReset = null; // OnScriptReset |
417 | private NewRezScript handlerRezScript = null; //OnRezScript; | 420 | private NewRezScript handlerRezScript = null; //OnRezScript; |
@@ -626,6 +629,15 @@ namespace OpenSim.Region.Framework.Scenes | |||
626 | } | 629 | } |
627 | } | 630 | } |
628 | 631 | ||
632 | public void TriggerObjectGrabbing(uint localID, uint originalID, Vector3 offsetPos, IClientAPI remoteClient, SurfaceTouchEventArgs surfaceArgs) | ||
633 | { | ||
634 | handlerObjectGrabbing = OnObjectGrabbing; | ||
635 | if (handlerObjectGrabbing != null) | ||
636 | { | ||
637 | handlerObjectGrabbing(localID, originalID, offsetPos, remoteClient, surfaceArgs); | ||
638 | } | ||
639 | } | ||
640 | |||
629 | public void TriggerObjectDeGrab(uint localID, uint originalID, IClientAPI remoteClient, SurfaceTouchEventArgs surfaceArgs) | 641 | public void TriggerObjectDeGrab(uint localID, uint originalID, IClientAPI remoteClient, SurfaceTouchEventArgs surfaceArgs) |
630 | { | 642 | { |
631 | handlerObjectDeGrab = OnObjectDeGrab; | 643 | handlerObjectDeGrab = OnObjectDeGrab; |