aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/EventManager.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/EventManager.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/EventManager.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/EventManager.cs b/OpenSim/Region/Environment/Scenes/EventManager.cs
index 6cecb6d..e77bebc 100644
--- a/OpenSim/Region/Environment/Scenes/EventManager.cs
+++ b/OpenSim/Region/Environment/Scenes/EventManager.cs
@@ -85,11 +85,13 @@ namespace OpenSim.Region.Environment.Scenes
85 85
86 public delegate void ObjectGrabDelegate(uint localID, LLVector3 offsetPos, IClientAPI remoteClient); 86 public delegate void ObjectGrabDelegate(uint localID, LLVector3 offsetPos, IClientAPI remoteClient);
87 public delegate void ObjectDeGrabDelegate(uint localID, IClientAPI remoteClient); 87 public delegate void ObjectDeGrabDelegate(uint localID, IClientAPI remoteClient);
88 public delegate void ScriptResetDelegate(uint localID, LLUUID itemID);
88 89
89 public delegate void OnPermissionErrorDelegate(LLUUID user, string reason); 90 public delegate void OnPermissionErrorDelegate(LLUUID user, string reason);
90 91
91 public event ObjectGrabDelegate OnObjectGrab; 92 public event ObjectGrabDelegate OnObjectGrab;
92 public event ObjectDeGrabDelegate OnObjectDeGrab; 93 public event ObjectDeGrabDelegate OnObjectDeGrab;
94 public event ScriptResetDelegate OnScriptReset;
93 95
94 public event OnPermissionErrorDelegate OnPermissionError; 96 public event OnPermissionErrorDelegate OnPermissionError;
95 97
@@ -310,6 +312,7 @@ namespace OpenSim.Region.Environment.Scenes
310 private OnShutdownDelegate handlerShutdown = null; //OnShutdown; 312 private OnShutdownDelegate handlerShutdown = null; //OnShutdown;
311 private ObjectGrabDelegate handlerObjectGrab = null; //OnObjectGrab; 313 private ObjectGrabDelegate handlerObjectGrab = null; //OnObjectGrab;
312 private ObjectDeGrabDelegate handlerObjectDeGrab = null; //OnObjectDeGrab; 314 private ObjectDeGrabDelegate handlerObjectDeGrab = null; //OnObjectDeGrab;
315 private ScriptResetDelegate handlerScriptReset = null; // OnScriptReset
313 private NewRezScript handlerRezScript = null; //OnRezScript; 316 private NewRezScript handlerRezScript = null; //OnRezScript;
314 private RemoveScript handlerRemoveScript = null; //OnRemoveScript; 317 private RemoveScript handlerRemoveScript = null; //OnRemoveScript;
315 private SceneGroupMoved handlerSceneGroupMove = null; //OnSceneGroupMove; 318 private SceneGroupMoved handlerSceneGroupMove = null; //OnSceneGroupMove;
@@ -484,6 +487,15 @@ namespace OpenSim.Region.Environment.Scenes
484 } 487 }
485 } 488 }
486 489
490 public void TriggerScriptReset(uint localID, LLUUID itemID)
491 {
492 handlerScriptReset = OnScriptReset;
493 if (handlerScriptReset != null)
494 {
495 handlerScriptReset(localID, itemID);
496 }
497 }
498
487 public void TriggerRezScript(uint localID, LLUUID itemID, string script) 499 public void TriggerRezScript(uint localID, LLUUID itemID, string script)
488 { 500 {
489 handlerRezScript = OnRezScript; 501 handlerRezScript = OnRezScript;