aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneEvents.cs
diff options
context:
space:
mode:
authorTeravus Ovares2008-04-27 22:15:38 +0000
committerTeravus Ovares2008-04-27 22:15:38 +0000
commit54563d8dea86ca1e022f3aafa791908e8bcc4912 (patch)
tree2eab339160a5f89cb637c6554e6d56be594d2180 /OpenSim/Region/Environment/Scenes/SceneEvents.cs
parent* Single Attachments now work from inventory. You can attach from inventory ... (diff)
downloadopensim-SC_OLD-54563d8dea86ca1e022f3aafa791908e8bcc4912.zip
opensim-SC_OLD-54563d8dea86ca1e022f3aafa791908e8bcc4912.tar.gz
opensim-SC_OLD-54563d8dea86ca1e022f3aafa791908e8bcc4912.tar.bz2
opensim-SC_OLD-54563d8dea86ca1e022f3aafa791908e8bcc4912.tar.xz
* Patch from XenReborn to make remove-region work properly without needing to do a change-region first. Careful though. I still suggest you do a change-region first.
* Patch from Melanie to implement touch_end. * Thanks XenReborn!. Thanks Melanie!
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneEvents.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneEvents.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneEvents.cs b/OpenSim/Region/Environment/Scenes/SceneEvents.cs
index 74554c3..769817e 100644
--- a/OpenSim/Region/Environment/Scenes/SceneEvents.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneEvents.cs
@@ -83,10 +83,12 @@ namespace OpenSim.Region.Environment.Scenes
83 public event OnShutdownDelegate OnShutdown; 83 public event OnShutdownDelegate OnShutdown;
84 84
85 public delegate void ObjectGrabDelegate(uint localID, LLVector3 offsetPos, IClientAPI remoteClient); 85 public delegate void ObjectGrabDelegate(uint localID, LLVector3 offsetPos, IClientAPI remoteClient);
86 public delegate void ObjectDeGrabDelegate(uint localID, IClientAPI remoteClient);
86 87
87 public delegate void OnPermissionErrorDelegate(LLUUID user, string reason); 88 public delegate void OnPermissionErrorDelegate(LLUUID user, string reason);
88 89
89 public event ObjectGrabDelegate OnObjectGrab; 90 public event ObjectGrabDelegate OnObjectGrab;
91 public event ObjectDeGrabDelegate OnObjectDeGrab;
90 92
91 public event OnPermissionErrorDelegate OnPermissionError; 93 public event OnPermissionErrorDelegate OnPermissionError;
92 94
@@ -247,6 +249,7 @@ namespace OpenSim.Region.Environment.Scenes
247 private OnParcelPrimCountAddDelegate handlerParcelPrimCountAdd = null; //OnParcelPrimCountAdd; 249 private OnParcelPrimCountAddDelegate handlerParcelPrimCountAdd = null; //OnParcelPrimCountAdd;
248 private OnShutdownDelegate handlerShutdown = null; //OnShutdown; 250 private OnShutdownDelegate handlerShutdown = null; //OnShutdown;
249 private ObjectGrabDelegate handlerObjectGrab = null; //OnObjectGrab; 251 private ObjectGrabDelegate handlerObjectGrab = null; //OnObjectGrab;
252 private ObjectDeGrabDelegate handlerObjectDeGrab = null; //OnObjectDeGrab;
250 private NewRezScript handlerRezScript = null; //OnRezScript; 253 private NewRezScript handlerRezScript = null; //OnRezScript;
251 private RemoveScript handlerRemoveScript = null; //OnRemoveScript; 254 private RemoveScript handlerRemoveScript = null; //OnRemoveScript;
252 private SceneGroupMoved handlerSceneGroupMove = null; //OnSceneGroupMove; 255 private SceneGroupMoved handlerSceneGroupMove = null; //OnSceneGroupMove;
@@ -386,6 +389,15 @@ namespace OpenSim.Region.Environment.Scenes
386 } 389 }
387 } 390 }
388 391
392 public void TriggerObjectDeGrab(uint localID, IClientAPI remoteClient)
393 {
394 handlerObjectDeGrab = OnObjectDeGrab;
395 if (handlerObjectDeGrab != null)
396 {
397 handlerObjectDeGrab(localID, remoteClient);
398 }
399 }
400
389 public void TriggerRezScript(uint localID, LLUUID itemID, string script) 401 public void TriggerRezScript(uint localID, LLUUID itemID, string script)
390 { 402 {
391 handlerRezScript = OnRezScript; 403 handlerRezScript = OnRezScript;