aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneEvents.cs
diff options
context:
space:
mode:
authorTeravus Ovares2008-04-25 01:00:55 +0000
committerTeravus Ovares2008-04-25 01:00:55 +0000
commit9468917b5f6ba6556bd9605e88227ea79e43d94e (patch)
tree7e175b228a221dfcf2f16a2d86a5f3f50f0b2a1e /OpenSim/Region/Environment/Scenes/SceneEvents.cs
parent* Tuned the llMove2Target PID controller to be more reasonable and not oversh... (diff)
downloadopensim-SC_OLD-9468917b5f6ba6556bd9605e88227ea79e43d94e.zip
opensim-SC_OLD-9468917b5f6ba6556bd9605e88227ea79e43d94e.tar.gz
opensim-SC_OLD-9468917b5f6ba6556bd9605e88227ea79e43d94e.tar.bz2
opensim-SC_OLD-9468917b5f6ba6556bd9605e88227ea79e43d94e.tar.xz
* Implements llTarget, llTargetRemove, at_target(), not_at_target()
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}