diff options
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneEvents.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneEvents.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneEvents.cs b/OpenSim/Region/Environment/Scenes/SceneEvents.cs index 1df95cf..cb5a967 100644 --- a/OpenSim/Region/Environment/Scenes/SceneEvents.cs +++ b/OpenSim/Region/Environment/Scenes/SceneEvents.cs | |||
@@ -1,4 +1,5 @@ | |||
1 | using libsecondlife; | 1 | using libsecondlife; |
2 | using OpenSim.Framework.Interfaces; | ||
2 | 3 | ||
3 | namespace OpenSim.Region.Environment.Scenes | 4 | namespace OpenSim.Region.Environment.Scenes |
4 | { | 5 | { |
@@ -31,6 +32,9 @@ namespace OpenSim.Region.Environment.Scenes | |||
31 | public delegate void OnShutdownDelegate(); | 32 | public delegate void OnShutdownDelegate(); |
32 | public event OnShutdownDelegate OnShutdown; | 33 | public event OnShutdownDelegate OnShutdown; |
33 | 34 | ||
35 | public delegate void ObjectGrabDelegate(uint localID, LLVector3 offsetPos, IClientAPI remoteClient); | ||
36 | public event ObjectGrabDelegate OnObjectGrab; | ||
37 | |||
34 | public void TriggerOnScriptConsole(string[] args) | 38 | public void TriggerOnScriptConsole(string[] args) |
35 | { | 39 | { |
36 | if (OnScriptConsole != null) | 40 | if (OnScriptConsole != null) |
@@ -87,5 +91,11 @@ namespace OpenSim.Region.Environment.Scenes | |||
87 | if (OnShutdown != null) | 91 | if (OnShutdown != null) |
88 | OnShutdown(); | 92 | OnShutdown(); |
89 | } | 93 | } |
94 | |||
95 | public void TriggerObjectGrab(uint localID, LLVector3 offsetPos, IClientAPI remoteClient) | ||
96 | { | ||
97 | if (OnObjectGrab != null) | ||
98 | OnObjectGrab(localID, offsetPos, remoteClient); | ||
99 | } | ||
90 | } | 100 | } |
91 | } | 101 | } |