aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneEvents.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneEvents.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneEvents.cs30
1 files changed, 29 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneEvents.cs b/OpenSim/Region/Environment/Scenes/SceneEvents.cs
index c9c0ad6..74554c3 100644
--- a/OpenSim/Region/Environment/Scenes/SceneEvents.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneEvents.cs
@@ -132,9 +132,17 @@ namespace OpenSim.Region.Environment.Scenes
132 public event ClientClosed OnClientClosed; 132 public event ClientClosed OnClientClosed;
133 133
134 public delegate void ScriptChangedEvent(uint localID, uint change); 134 public delegate void ScriptChangedEvent(uint localID, uint change);
135 135
136 public event ScriptChangedEvent OnScriptChangedEvent; 136 public event ScriptChangedEvent OnScriptChangedEvent;
137 137
138 public delegate void ScriptAtTargetEvent(uint localID, uint handle, LLVector3 targetpos, LLVector3 atpos);
139
140 public event ScriptAtTargetEvent OnScriptAtTargetEvent;
141
142 public delegate void ScriptNotAtTargetEvent(uint localID);
143
144 public event ScriptNotAtTargetEvent OnScriptNotAtTargetEvent;
145
138 public event OnNewPresenceDelegate OnMakeChildAgent; 146 public event OnNewPresenceDelegate OnMakeChildAgent;
139 147
140 public delegate void NewInventoryItemUploadComplete(LLUUID avatarID, LLUUID assetID, string name, int userlevel); 148 public delegate void NewInventoryItemUploadComplete(LLUUID avatarID, LLUUID assetID, string name, int userlevel);
@@ -224,6 +232,8 @@ namespace OpenSim.Region.Environment.Scenes
224 /* Designated Event Deletage Instances */ 232 /* Designated Event Deletage Instances */
225 233
226 private ScriptChangedEvent handlerScriptChangedEvent = null; //OnScriptChangedEvent; 234 private ScriptChangedEvent handlerScriptChangedEvent = null; //OnScriptChangedEvent;
235 private ScriptAtTargetEvent handlerScriptAtTargetEvent = null;
236 private ScriptNotAtTargetEvent handlerScriptNotAtTargetEvent = null;
227 private ClientMovement handlerClientMovement = null; //OnClientMovement; 237 private ClientMovement handlerClientMovement = null; //OnClientMovement;
228 private OnPermissionErrorDelegate handlerPermissionError = null; //OnPermissionError; 238 private OnPermissionErrorDelegate handlerPermissionError = null; //OnPermissionError;
229 private OnPluginConsoleDelegate handlerPluginConsole = null; //OnPluginConsole; 239 private OnPluginConsoleDelegate handlerPluginConsole = null; //OnPluginConsole;
@@ -534,5 +544,23 @@ namespace OpenSim.Region.Environment.Scenes
534 handlerValidateLandBuy(sender, e); 544 handlerValidateLandBuy(sender, e);
535 } 545 }
536 } 546 }
547
548 public void TriggerAtTargetEvent(uint localID, uint handle, LLVector3 targetpos, LLVector3 currentpos)
549 {
550 handlerScriptAtTargetEvent = OnScriptAtTargetEvent;
551 if (handlerScriptAtTargetEvent != null)
552 {
553 handlerScriptAtTargetEvent(localID, handle, targetpos, currentpos);
554 }
555 }
556
557 public void TriggerNotAtTargetEvent(uint localID)
558 {
559 handlerScriptNotAtTargetEvent = OnScriptNotAtTargetEvent;
560 if (handlerScriptNotAtTargetEvent != null)
561 {
562 handlerScriptNotAtTargetEvent(localID);
563 }
564 }
537 } 565 }
538} 566}