diff options
author | Charles Krinke | 2008-06-04 14:31:36 +0000 |
---|---|---|
committer | Charles Krinke | 2008-06-04 14:31:36 +0000 |
commit | d635b526e5997a66f3a54134230289cb248a9cee (patch) | |
tree | 46851f7e5f85f8831c1b8c59b0e007c2b75e39d0 /OpenSim/Region/Environment/Scenes/EventManager.cs | |
parent | * fleshing out XMPP entities, adding XmppWriter and XmppSerializer (diff) | |
download | opensim-SC-d635b526e5997a66f3a54134230289cb248a9cee.zip opensim-SC-d635b526e5997a66f3a54134230289cb248a9cee.tar.gz opensim-SC-d635b526e5997a66f3a54134230289cb248a9cee.tar.bz2 opensim-SC-d635b526e5997a66f3a54134230289cb248a9cee.tar.xz |
Mantis#1439. Thank you kindly, Melanie for a patch that
plumbs in the events for on_rez.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/EventManager.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/EventManager.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/EventManager.cs b/OpenSim/Region/Environment/Scenes/EventManager.cs index ea44f9a..eee4e4a 100644 --- a/OpenSim/Region/Environment/Scenes/EventManager.cs +++ b/OpenSim/Region/Environment/Scenes/EventManager.cs | |||
@@ -96,9 +96,12 @@ namespace OpenSim.Region.Environment.Scenes | |||
96 | public event OnPermissionErrorDelegate OnPermissionError; | 96 | public event OnPermissionErrorDelegate OnPermissionError; |
97 | 97 | ||
98 | public delegate void NewRezScript(uint localID, LLUUID itemID, string script); | 98 | public delegate void NewRezScript(uint localID, LLUUID itemID, string script); |
99 | public delegate void RezEvent(uint localID, LLUUID itemID, int param); | ||
99 | 100 | ||
100 | public event NewRezScript OnRezScript; | 101 | public event NewRezScript OnRezScript; |
101 | 102 | ||
103 | public event RezEvent OnRezEvent; | ||
104 | |||
102 | public delegate void RemoveScript(uint localID, LLUUID itemID); | 105 | public delegate void RemoveScript(uint localID, LLUUID itemID); |
103 | 106 | ||
104 | public event RemoveScript OnRemoveScript; | 107 | public event RemoveScript OnRemoveScript; |
@@ -319,6 +322,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
319 | private ObjectDeGrabDelegate handlerObjectDeGrab = null; //OnObjectDeGrab; | 322 | private ObjectDeGrabDelegate handlerObjectDeGrab = null; //OnObjectDeGrab; |
320 | private ScriptResetDelegate handlerScriptReset = null; // OnScriptReset | 323 | private ScriptResetDelegate handlerScriptReset = null; // OnScriptReset |
321 | private NewRezScript handlerRezScript = null; //OnRezScript; | 324 | private NewRezScript handlerRezScript = null; //OnRezScript; |
325 | private RezEvent handlerOnRezEvent = null; //OnRezEvent; | ||
322 | private RemoveScript handlerRemoveScript = null; //OnRemoveScript; | 326 | private RemoveScript handlerRemoveScript = null; //OnRemoveScript; |
323 | private SceneGroupMoved handlerSceneGroupMove = null; //OnSceneGroupMove; | 327 | private SceneGroupMoved handlerSceneGroupMove = null; //OnSceneGroupMove; |
324 | private SceneGroupGrabed handlerSceneGroupGrab = null; //OnSceneGroupGrab; | 328 | private SceneGroupGrabed handlerSceneGroupGrab = null; //OnSceneGroupGrab; |
@@ -513,6 +517,15 @@ namespace OpenSim.Region.Environment.Scenes | |||
513 | } | 517 | } |
514 | } | 518 | } |
515 | 519 | ||
520 | public void TriggerOnRezEvent(uint localID, LLUUID itemID, int param) | ||
521 | { | ||
522 | handlerOnRezEvent = OnRezEvent; | ||
523 | if (handlerOnRezEvent != null) | ||
524 | { | ||
525 | handlerOnRezEvent(localID, itemID, param); | ||
526 | } | ||
527 | } | ||
528 | |||
516 | public void TriggerRemoveScript(uint localID, LLUUID itemID) | 529 | public void TriggerRemoveScript(uint localID, LLUUID itemID) |
517 | { | 530 | { |
518 | handlerRemoveScript = OnRemoveScript; | 531 | handlerRemoveScript = OnRemoveScript; |