diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/EventManager.cs | 32 |
1 files changed, 30 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/EventManager.cs b/OpenSim/Region/Framework/Scenes/EventManager.cs index 3e49691..f1d8cb4 100644 --- a/OpenSim/Region/Framework/Scenes/EventManager.cs +++ b/OpenSim/Region/Framework/Scenes/EventManager.cs | |||
@@ -181,7 +181,15 @@ namespace OpenSim.Region.Framework.Scenes | |||
181 | 181 | ||
182 | public delegate void ScriptNotAtTargetEvent(uint localID); | 182 | public delegate void ScriptNotAtTargetEvent(uint localID); |
183 | 183 | ||
184 | public event ScriptNotAtTargetEvent OnScriptNotAtTargetEvent; | 184 | public event ScriptNotAtTargetEvent OnScriptNotAtTargetEvent; |
185 | |||
186 | public delegate void ScriptAtRotTargetEvent(uint localID, uint handle, Quaternion targetrot, Quaternion atrot); | ||
187 | |||
188 | public event ScriptAtRotTargetEvent OnScriptAtRotTargetEvent; | ||
189 | |||
190 | public delegate void ScriptNotAtRotTargetEvent(uint localID); | ||
191 | |||
192 | public event ScriptNotAtRotTargetEvent OnScriptNotAtRotTargetEvent; | ||
185 | 193 | ||
186 | public delegate void ScriptColliding(uint localID, ColliderArgs colliders); | 194 | public delegate void ScriptColliding(uint localID, ColliderArgs colliders); |
187 | 195 | ||
@@ -387,7 +395,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
387 | 395 | ||
388 | private ScriptChangedEvent handlerScriptChangedEvent = null; //OnScriptChangedEvent; | 396 | private ScriptChangedEvent handlerScriptChangedEvent = null; //OnScriptChangedEvent; |
389 | private ScriptAtTargetEvent handlerScriptAtTargetEvent = null; | 397 | private ScriptAtTargetEvent handlerScriptAtTargetEvent = null; |
390 | private ScriptNotAtTargetEvent handlerScriptNotAtTargetEvent = null; | 398 | private ScriptNotAtTargetEvent handlerScriptNotAtTargetEvent = null; |
399 | private ScriptAtRotTargetEvent handlerScriptAtRotTargetEvent = null; | ||
400 | private ScriptNotAtRotTargetEvent handlerScriptNotAtRotTargetEvent = null; | ||
391 | private ClientMovement handlerClientMovement = null; //OnClientMovement; | 401 | private ClientMovement handlerClientMovement = null; //OnClientMovement; |
392 | private OnPermissionErrorDelegate handlerPermissionError = null; //OnPermissionError; | 402 | private OnPermissionErrorDelegate handlerPermissionError = null; //OnPermissionError; |
393 | private OnPluginConsoleDelegate handlerPluginConsole = null; //OnPluginConsole; | 403 | private OnPluginConsoleDelegate handlerPluginConsole = null; //OnPluginConsole; |
@@ -873,6 +883,24 @@ namespace OpenSim.Region.Framework.Scenes | |||
873 | { | 883 | { |
874 | handlerScriptNotAtTargetEvent(localID); | 884 | handlerScriptNotAtTargetEvent(localID); |
875 | } | 885 | } |
886 | } | ||
887 | |||
888 | public void TriggerAtRotTargetEvent(uint localID, uint handle, Quaternion targetrot, Quaternion currentrot) | ||
889 | { | ||
890 | handlerScriptAtRotTargetEvent = OnScriptAtRotTargetEvent; | ||
891 | if (handlerScriptAtRotTargetEvent != null) | ||
892 | { | ||
893 | handlerScriptAtRotTargetEvent(localID, handle, targetrot, currentrot); | ||
894 | } | ||
895 | } | ||
896 | |||
897 | public void TriggerNotAtRotTargetEvent(uint localID) | ||
898 | { | ||
899 | handlerScriptNotAtRotTargetEvent = OnScriptNotAtRotTargetEvent; | ||
900 | if (handlerScriptNotAtRotTargetEvent != null) | ||
901 | { | ||
902 | handlerScriptNotAtRotTargetEvent(localID); | ||
903 | } | ||
876 | } | 904 | } |
877 | 905 | ||
878 | public void TriggerRequestChangeWaterHeight(float height) | 906 | public void TriggerRequestChangeWaterHeight(float height) |