diff options
author | MW | 2007-08-13 20:11:35 +0000 |
---|---|---|
committer | MW | 2007-08-13 20:11:35 +0000 |
commit | b3c6920328778c162902d0278848f02e54413978 (patch) | |
tree | ea21b22e728f308914737b876c95432bfb52a75a /OpenSim/Region/Environment/Scenes/SceneEvents.cs | |
parent | Changed ScriptLoader to use Path.combine. (diff) | |
download | opensim-SC-b3c6920328778c162902d0278848f02e54413978.zip opensim-SC-b3c6920328778c162902d0278848f02e54413978.tar.gz opensim-SC-b3c6920328778c162902d0278848f02e54413978.tar.bz2 opensim-SC-b3c6920328778c162902d0278848f02e54413978.tar.xz |
added Sample OnObjectGrab event to SceneEventManager for script engines to subscribe to.
Diffstat (limited to '')
-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 | } |