aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/RemoteServer/EventManager.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ScriptEngine/RemoteServer/EventManager.cs944
1 files changed, 472 insertions, 472 deletions
diff --git a/OpenSim/Region/ScriptEngine/RemoteServer/EventManager.cs b/OpenSim/Region/ScriptEngine/RemoteServer/EventManager.cs
index 5561563..812b1c0 100644
--- a/OpenSim/Region/ScriptEngine/RemoteServer/EventManager.cs
+++ b/OpenSim/Region/ScriptEngine/RemoteServer/EventManager.cs
@@ -1,473 +1,473 @@
1/* 1/*
2* Copyright (c) Contributors, http://opensimulator.org/ 2* Copyright (c) Contributors, http://opensimulator.org/
3* See CONTRIBUTORS.TXT for a full list of copyright holders. 3* See CONTRIBUTORS.TXT for a full list of copyright holders.
4* 4*
5* Redistribution and use in source and binary forms, with or without 5* Redistribution and use in source and binary forms, with or without
6* modification, are permitted provided that the following conditions are met: 6* modification, are permitted provided that the following conditions are met:
7* * Redistributions of source code must retain the above copyright 7* * Redistributions of source code must retain the above copyright
8* notice, this list of conditions and the following disclaimer. 8* notice, this list of conditions and the following disclaimer.
9* * Redistributions in binary form must reproduce the above copyright 9* * Redistributions in binary form must reproduce the above copyright
10* notice, this list of conditions and the following disclaimer in the 10* notice, this list of conditions and the following disclaimer in the
11* documentation and/or other materials provided with the distribution. 11* documentation and/or other materials provided with the distribution.
12* * Neither the name of the OpenSim Project nor the 12* * Neither the name of the OpenSim Project nor the
13* names of its contributors may be used to endorse or promote products 13* names of its contributors may be used to endorse or promote products
14* derived from this software without specific prior written permission. 14* derived from this software without specific prior written permission.
15* 15*
16* THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY 16* THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 18* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19* DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY 19* DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 21* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 22* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 24* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26* 26*
27*/ 27*/
28/* Original code: Tedd Hansen */ 28/* Original code: Tedd Hansen */
29using System; 29using System;
30using libsecondlife; 30using libsecondlife;
31using OpenSim.Framework; 31using OpenSim.Framework;
32using OpenSim.Grid.ScriptServer; 32using OpenSim.Grid.ScriptServer;
33using OpenSim.Region.ScriptEngine.DotNetEngine; 33using OpenSim.Region.ScriptEngine.DotNetEngine;
34 34
35namespace OpenSim.Region.ScriptEngine.RemoteServer 35namespace OpenSim.Region.ScriptEngine.RemoteServer
36{ 36{
37 /// <summary> 37 /// <summary>
38 /// Handles events from OpenSim. Uses RemoteServer to send commands. 38 /// Handles events from OpenSim. Uses RemoteServer to send commands.
39 /// </summary> 39 /// </summary>
40 [Serializable] 40 [Serializable]
41 internal class EventManager 41 internal class EventManager
42 { 42 {
43 43
44 System.Collections.Generic.Dictionary<uint, RemotingObject> remoteScript = new System.Collections.Generic.Dictionary<uint, OpenSim.Grid.ScriptServer.RemotingObject>(); 44 System.Collections.Generic.Dictionary<uint, RemotingObject> remoteScript = new System.Collections.Generic.Dictionary<uint, OpenSim.Grid.ScriptServer.RemotingObject>();
45 45
46 46
47 private ScriptEngine myScriptEngine; 47 private ScriptEngine myScriptEngine;
48 public EventManager(ScriptEngine _ScriptEngine) 48 public EventManager(ScriptEngine _ScriptEngine)
49 { 49 {
50 myScriptEngine = _ScriptEngine; 50 myScriptEngine = _ScriptEngine;
51 51
52 myScriptEngine.Log.Verbose("RemoteEngine", "Hooking up to server events"); 52 myScriptEngine.Log.Verbose("RemoteEngine", "Hooking up to server events");
53 //myScriptEngine.World.EventManager.OnObjectGrab += touch_start; 53 //myScriptEngine.World.EventManager.OnObjectGrab += touch_start;
54 myScriptEngine.World.EventManager.OnRezScript += OnRezScript; 54 myScriptEngine.World.EventManager.OnRezScript += OnRezScript;
55 //myScriptEngine.World.EventManager.OnRemoveScript += OnRemoveScript; 55 //myScriptEngine.World.EventManager.OnRemoveScript += OnRemoveScript;
56 56
57 57
58 } 58 }
59 59
60 60
61 public void OnRezScript(uint localID, LLUUID itemID, string script) 61 public void OnRezScript(uint localID, LLUUID itemID, string script)
62 { 62 {
63 // WE ARE CREATING A NEW SCRIPT ... CREATE SCRIPT, GET A REMOTEID THAT WE MAP FROM LOCALID 63 // WE ARE CREATING A NEW SCRIPT ... CREATE SCRIPT, GET A REMOTEID THAT WE MAP FROM LOCALID
64 OpenSim.Grid.ScriptServer.RemotingObject obj = myScriptEngine.m_RemoteServer.Connect("localhost", 1234); 64 OpenSim.Grid.ScriptServer.RemotingObject obj = myScriptEngine.m_RemoteServer.Connect("localhost", 1234);
65 remoteScript.Add(localID, obj); 65 remoteScript.Add(localID, obj);
66 try 66 try
67 { 67 {
68 remoteScript[localID].ScriptEngine.m_EventManager.OnRezScript(localID, itemID, script); 68 remoteScript[localID].ScriptEngine.m_EventManager.OnRezScript(localID, itemID, script);
69 } 69 }
70 catch (System.NullReferenceException) 70 catch (System.NullReferenceException)
71 { 71 {
72 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?"); 72 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?");
73 } 73 }
74 } 74 }
75 75
76 public void touch_start(uint localID, LLVector3 offsetPos, IClientAPI remoteClient) 76 public void touch_start(uint localID, LLVector3 offsetPos, IClientAPI remoteClient)
77 { 77 {
78 try 78 try
79 { 79 {
80 remoteScript[localID].ScriptEngine.m_EventManager.touch_start(localID, offsetPos, remoteClient); 80 remoteScript[localID].ScriptEngine.m_EventManager.touch_start(localID, offsetPos, remoteClient);
81 } 81 }
82 catch (System.NullReferenceException) 82 catch (System.NullReferenceException)
83 { 83 {
84 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?"); 84 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?");
85 } 85 }
86 } 86 }
87 87
88 public void OnRemoveScript(uint localID, LLUUID itemID) 88 public void OnRemoveScript(uint localID, LLUUID itemID)
89 { 89 {
90 try 90 try
91 { 91 {
92 remoteScript[localID].ScriptEngine.m_EventManager.OnRemoveScript(localID, itemID); 92 remoteScript[localID].ScriptEngine.m_EventManager.OnRemoveScript(localID, itemID);
93 } 93 }
94 catch (System.NullReferenceException) 94 catch (System.NullReferenceException)
95 { 95 {
96 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?"); 96 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?");
97 } 97 }
98 } 98 }
99 99
100 public void state_exit(uint localID, LLUUID itemID) 100 public void state_exit(uint localID, LLUUID itemID)
101 { 101 {
102 try 102 try
103 { 103 {
104 remoteScript[localID].ScriptEngine.m_EventManager.state_exit(localID, itemID); 104 remoteScript[localID].ScriptEngine.m_EventManager.state_exit(localID, itemID);
105 } 105 }
106 catch (System.NullReferenceException) 106 catch (System.NullReferenceException)
107 { 107 {
108 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?"); 108 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?");
109 } 109 }
110 } 110 }
111 111
112 public void touch(uint localID, LLUUID itemID) 112 public void touch(uint localID, LLUUID itemID)
113 { 113 {
114 try 114 try
115 { 115 {
116 remoteScript[localID].ScriptEngine.m_EventManager.touch(localID, itemID); 116 remoteScript[localID].ScriptEngine.m_EventManager.touch(localID, itemID);
117 } 117 }
118 catch (System.NullReferenceException) 118 catch (System.NullReferenceException)
119 { 119 {
120 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?"); 120 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?");
121 } 121 }
122 } 122 }
123 123
124 public void touch_end(uint localID, LLUUID itemID) 124 public void touch_end(uint localID, LLUUID itemID)
125 { 125 {
126 try 126 try
127 { 127 {
128 remoteScript[localID].ScriptEngine.m_EventManager.touch_end(localID, itemID); 128 remoteScript[localID].ScriptEngine.m_EventManager.touch_end(localID, itemID);
129 } 129 }
130 catch (System.NullReferenceException) 130 catch (System.NullReferenceException)
131 { 131 {
132 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?"); 132 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?");
133 } 133 }
134 } 134 }
135 135
136 public void collision_start(uint localID, LLUUID itemID) 136 public void collision_start(uint localID, LLUUID itemID)
137 { 137 {
138 try 138 try
139 { 139 {
140 remoteScript[localID].ScriptEngine.m_EventManager.collision_start(localID, itemID); 140 remoteScript[localID].ScriptEngine.m_EventManager.collision_start(localID, itemID);
141 } 141 }
142 catch (System.NullReferenceException) 142 catch (System.NullReferenceException)
143 { 143 {
144 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?"); 144 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?");
145 } 145 }
146 } 146 }
147 147
148 public void collision(uint localID, LLUUID itemID) 148 public void collision(uint localID, LLUUID itemID)
149 { 149 {
150 try 150 try
151 { 151 {
152 remoteScript[localID].ScriptEngine.m_EventManager.collision(localID, itemID); 152 remoteScript[localID].ScriptEngine.m_EventManager.collision(localID, itemID);
153 } 153 }
154 catch (System.NullReferenceException) 154 catch (System.NullReferenceException)
155 { 155 {
156 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?"); 156 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?");
157 } 157 }
158 } 158 }
159 159
160 public void collision_end(uint localID, LLUUID itemID) 160 public void collision_end(uint localID, LLUUID itemID)
161 { 161 {
162 try 162 try
163 { 163 {
164 remoteScript[localID].ScriptEngine.m_EventManager.collision_end(localID, itemID); 164 remoteScript[localID].ScriptEngine.m_EventManager.collision_end(localID, itemID);
165 } 165 }
166 catch (System.NullReferenceException) 166 catch (System.NullReferenceException)
167 { 167 {
168 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?"); 168 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?");
169 } 169 }
170 } 170 }
171 171
172 public void land_collision_start(uint localID, LLUUID itemID) 172 public void land_collision_start(uint localID, LLUUID itemID)
173 { 173 {
174 try 174 try
175 { 175 {
176 remoteScript[localID].ScriptEngine.m_EventManager.land_collision_start(localID, itemID); 176 remoteScript[localID].ScriptEngine.m_EventManager.land_collision_start(localID, itemID);
177 } 177 }
178 catch (System.NullReferenceException) 178 catch (System.NullReferenceException)
179 { 179 {
180 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?"); 180 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?");
181 } 181 }
182 } 182 }
183 183
184 public void land_collision(uint localID, LLUUID itemID) 184 public void land_collision(uint localID, LLUUID itemID)
185 { 185 {
186 try 186 try
187 { 187 {
188 remoteScript[localID].ScriptEngine.m_EventManager.land_collision(localID, itemID); 188 remoteScript[localID].ScriptEngine.m_EventManager.land_collision(localID, itemID);
189 } 189 }
190 catch (System.NullReferenceException) 190 catch (System.NullReferenceException)
191 { 191 {
192 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?"); 192 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?");
193 } 193 }
194 } 194 }
195 195
196 public void land_collision_end(uint localID, LLUUID itemID) 196 public void land_collision_end(uint localID, LLUUID itemID)
197 { 197 {
198 try 198 try
199 { 199 {
200 remoteScript[localID].ScriptEngine.m_EventManager.land_collision_end(localID, itemID); 200 remoteScript[localID].ScriptEngine.m_EventManager.land_collision_end(localID, itemID);
201 } 201 }
202 catch (System.NullReferenceException) 202 catch (System.NullReferenceException)
203 { 203 {
204 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?"); 204 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?");
205 } 205 }
206 } 206 }
207 207
208 public void timer(uint localID, LLUUID itemID) 208 public void timer(uint localID, LLUUID itemID)
209 { 209 {
210 try 210 try
211 { 211 {
212 remoteScript[localID].ScriptEngine.m_EventManager.timer(localID, itemID); 212 remoteScript[localID].ScriptEngine.m_EventManager.timer(localID, itemID);
213 } 213 }
214 catch (System.NullReferenceException) 214 catch (System.NullReferenceException)
215 { 215 {
216 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?"); 216 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?");
217 } 217 }
218 } 218 }
219 219
220 public void listen(uint localID, LLUUID itemID) 220 public void listen(uint localID, LLUUID itemID)
221 { 221 {
222 try 222 try
223 { 223 {
224 remoteScript[localID].ScriptEngine.m_EventManager.listen(localID, itemID); 224 remoteScript[localID].ScriptEngine.m_EventManager.listen(localID, itemID);
225 } 225 }
226 catch (System.NullReferenceException) 226 catch (System.NullReferenceException)
227 { 227 {
228 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?"); 228 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?");
229 } 229 }
230 } 230 }
231 231
232 public void on_rez(uint localID, LLUUID itemID) 232 public void on_rez(uint localID, LLUUID itemID)
233 { 233 {
234 try 234 try
235 { 235 {
236 remoteScript[localID].ScriptEngine.m_EventManager.on_rez(localID, itemID); 236 remoteScript[localID].ScriptEngine.m_EventManager.on_rez(localID, itemID);
237 } 237 }
238 catch (System.NullReferenceException) 238 catch (System.NullReferenceException)
239 { 239 {
240 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?"); 240 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?");
241 } 241 }
242 } 242 }
243 243
244 public void sensor(uint localID, LLUUID itemID) 244 public void sensor(uint localID, LLUUID itemID)
245 { 245 {
246 try 246 try
247 { 247 {
248 remoteScript[localID].ScriptEngine.m_EventManager.sensor(localID, itemID); 248 remoteScript[localID].ScriptEngine.m_EventManager.sensor(localID, itemID);
249 } 249 }
250 catch (System.NullReferenceException) 250 catch (System.NullReferenceException)
251 { 251 {
252 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?"); 252 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?");
253 } 253 }
254 } 254 }
255 255
256 public void no_sensor(uint localID, LLUUID itemID) 256 public void no_sensor(uint localID, LLUUID itemID)
257 { 257 {
258 try 258 try
259 { 259 {
260 remoteScript[localID].ScriptEngine.m_EventManager.no_sensor(localID, itemID); 260 remoteScript[localID].ScriptEngine.m_EventManager.no_sensor(localID, itemID);
261 } 261 }
262 catch (System.NullReferenceException) 262 catch (System.NullReferenceException)
263 { 263 {
264 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?"); 264 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?");
265 } 265 }
266 } 266 }
267 267
268 public void control(uint localID, LLUUID itemID) 268 public void control(uint localID, LLUUID itemID)
269 { 269 {
270 try 270 try
271 { 271 {
272 remoteScript[localID].ScriptEngine.m_EventManager.control(localID, itemID); 272 remoteScript[localID].ScriptEngine.m_EventManager.control(localID, itemID);
273 } 273 }
274 catch (System.NullReferenceException) 274 catch (System.NullReferenceException)
275 { 275 {
276 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?"); 276 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?");
277 } 277 }
278 } 278 }
279 279
280 public void money(uint localID, LLUUID itemID) 280 public void money(uint localID, LLUUID itemID)
281 { 281 {
282 try 282 try
283 { 283 {
284 remoteScript[localID].ScriptEngine.m_EventManager.money(localID, itemID); 284 remoteScript[localID].ScriptEngine.m_EventManager.money(localID, itemID);
285 } 285 }
286 catch (System.NullReferenceException) 286 catch (System.NullReferenceException)
287 { 287 {
288 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?"); 288 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?");
289 } 289 }
290 } 290 }
291 291
292 public void email(uint localID, LLUUID itemID) 292 public void email(uint localID, LLUUID itemID)
293 { 293 {
294 try 294 try
295 { 295 {
296 remoteScript[localID].ScriptEngine.m_EventManager.email(localID, itemID); 296 remoteScript[localID].ScriptEngine.m_EventManager.email(localID, itemID);
297 } 297 }
298 catch (System.NullReferenceException) 298 catch (System.NullReferenceException)
299 { 299 {
300 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?"); 300 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?");
301 } 301 }
302 } 302 }
303 303
304 public void at_target(uint localID, LLUUID itemID) 304 public void at_target(uint localID, LLUUID itemID)
305 { 305 {
306 try 306 try
307 { 307 {
308 remoteScript[localID].ScriptEngine.m_EventManager.at_target(localID, itemID); 308 remoteScript[localID].ScriptEngine.m_EventManager.at_target(localID, itemID);
309 } 309 }
310 catch (System.NullReferenceException) 310 catch (System.NullReferenceException)
311 { 311 {
312 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?"); 312 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?");
313 } 313 }
314 } 314 }
315 315
316 public void not_at_target(uint localID, LLUUID itemID) 316 public void not_at_target(uint localID, LLUUID itemID)
317 { 317 {
318 try 318 try
319 { 319 {
320 remoteScript[localID].ScriptEngine.m_EventManager.not_at_target(localID, itemID); 320 remoteScript[localID].ScriptEngine.m_EventManager.not_at_target(localID, itemID);
321 } 321 }
322 catch (System.NullReferenceException) 322 catch (System.NullReferenceException)
323 { 323 {
324 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?"); 324 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?");
325 } 325 }
326 } 326 }
327 327
328 public void at_rot_target(uint localID, LLUUID itemID) 328 public void at_rot_target(uint localID, LLUUID itemID)
329 { 329 {
330 try 330 try
331 { 331 {
332 remoteScript[localID].ScriptEngine.m_EventManager.at_rot_target(localID, itemID); 332 remoteScript[localID].ScriptEngine.m_EventManager.at_rot_target(localID, itemID);
333 } 333 }
334 catch (System.NullReferenceException) 334 catch (System.NullReferenceException)
335 { 335 {
336 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?"); 336 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?");
337 } 337 }
338 } 338 }
339 339
340 public void not_at_rot_target(uint localID, LLUUID itemID) 340 public void not_at_rot_target(uint localID, LLUUID itemID)
341 { 341 {
342 try 342 try
343 { 343 {
344 remoteScript[localID].ScriptEngine.m_EventManager.not_at_rot_target(localID, itemID); 344 remoteScript[localID].ScriptEngine.m_EventManager.not_at_rot_target(localID, itemID);
345 } 345 }
346 catch (System.NullReferenceException) 346 catch (System.NullReferenceException)
347 { 347 {
348 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?"); 348 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?");
349 } 349 }
350 } 350 }
351 351
352 public void run_time_permissions(uint localID, LLUUID itemID) 352 public void run_time_permissions(uint localID, LLUUID itemID)
353 { 353 {
354 try 354 try
355 { 355 {
356 remoteScript[localID].ScriptEngine.m_EventManager.run_time_permissions(localID, itemID); 356 remoteScript[localID].ScriptEngine.m_EventManager.run_time_permissions(localID, itemID);
357 } 357 }
358 catch (System.NullReferenceException) 358 catch (System.NullReferenceException)
359 { 359 {
360 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?"); 360 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?");
361 } 361 }
362 } 362 }
363 363
364 public void changed(uint localID, LLUUID itemID) 364 public void changed(uint localID, LLUUID itemID)
365 { 365 {
366 try 366 try
367 { 367 {
368 remoteScript[localID].ScriptEngine.m_EventManager.changed(localID, itemID); 368 remoteScript[localID].ScriptEngine.m_EventManager.changed(localID, itemID);
369 } 369 }
370 catch (System.NullReferenceException) 370 catch (System.NullReferenceException)
371 { 371 {
372 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?"); 372 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?");
373 } 373 }
374 } 374 }
375 375
376 public void attach(uint localID, LLUUID itemID) 376 public void attach(uint localID, LLUUID itemID)
377 { 377 {
378 try 378 try
379 { 379 {
380 remoteScript[localID].ScriptEngine.m_EventManager.attach(localID, itemID); 380 remoteScript[localID].ScriptEngine.m_EventManager.attach(localID, itemID);
381 } 381 }
382 catch (System.NullReferenceException) 382 catch (System.NullReferenceException)
383 { 383 {
384 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?"); 384 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?");
385 } 385 }
386 } 386 }
387 387
388 public void dataserver(uint localID, LLUUID itemID) 388 public void dataserver(uint localID, LLUUID itemID)
389 { 389 {
390 try 390 try
391 { 391 {
392 remoteScript[localID].ScriptEngine.m_EventManager.dataserver(localID, itemID); 392 remoteScript[localID].ScriptEngine.m_EventManager.dataserver(localID, itemID);
393 } 393 }
394 catch (System.NullReferenceException) 394 catch (System.NullReferenceException)
395 { 395 {
396 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?"); 396 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?");
397 } 397 }
398 } 398 }
399 399
400 public void link_message(uint localID, LLUUID itemID) 400 public void link_message(uint localID, LLUUID itemID)
401 { 401 {
402 try 402 try
403 { 403 {
404 remoteScript[localID].ScriptEngine.m_EventManager.link_message(localID, itemID); 404 remoteScript[localID].ScriptEngine.m_EventManager.link_message(localID, itemID);
405 } 405 }
406 catch (System.NullReferenceException) 406 catch (System.NullReferenceException)
407 { 407 {
408 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?"); 408 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?");
409 } 409 }
410 } 410 }
411 411
412 public void moving_start(uint localID, LLUUID itemID) 412 public void moving_start(uint localID, LLUUID itemID)
413 { 413 {
414 try 414 try
415 { 415 {
416 remoteScript[localID].ScriptEngine.m_EventManager.moving_start(localID, itemID); 416 remoteScript[localID].ScriptEngine.m_EventManager.moving_start(localID, itemID);
417 } 417 }
418 catch (System.NullReferenceException) 418 catch (System.NullReferenceException)
419 { 419 {
420 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?"); 420 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?");
421 } 421 }
422 } 422 }
423 423
424 public void moving_end(uint localID, LLUUID itemID) 424 public void moving_end(uint localID, LLUUID itemID)
425 { 425 {
426 try 426 try
427 { 427 {
428 remoteScript[localID].ScriptEngine.m_EventManager.moving_end(localID, itemID); 428 remoteScript[localID].ScriptEngine.m_EventManager.moving_end(localID, itemID);
429 } 429 }
430 catch (System.NullReferenceException) 430 catch (System.NullReferenceException)
431 { 431 {
432 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?"); 432 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?");
433 } 433 }
434 } 434 }
435 435
436 public void object_rez(uint localID, LLUUID itemID) 436 public void object_rez(uint localID, LLUUID itemID)
437 { 437 {
438 try 438 try
439 { 439 {
440 remoteScript[localID].ScriptEngine.m_EventManager.object_rez(localID, itemID); 440 remoteScript[localID].ScriptEngine.m_EventManager.object_rez(localID, itemID);
441 } 441 }
442 catch (System.NullReferenceException) 442 catch (System.NullReferenceException)
443 { 443 {
444 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?"); 444 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?");
445 } 445 }
446 } 446 }
447 447
448 public void remote_data(uint localID, LLUUID itemID) 448 public void remote_data(uint localID, LLUUID itemID)
449 { 449 {
450 try 450 try
451 { 451 {
452 remoteScript[localID].ScriptEngine.m_EventManager.remote_data(localID, itemID); 452 remoteScript[localID].ScriptEngine.m_EventManager.remote_data(localID, itemID);
453 } 453 }
454 catch (System.NullReferenceException) 454 catch (System.NullReferenceException)
455 { 455 {
456 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?"); 456 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?");
457 } 457 }
458 } 458 }
459 459
460 public void http_response(uint localID, LLUUID itemID) 460 public void http_response(uint localID, LLUUID itemID)
461 { 461 {
462 try 462 try
463 { 463 {
464 remoteScript[localID].ScriptEngine.m_EventManager.http_response(localID, itemID); 464 remoteScript[localID].ScriptEngine.m_EventManager.http_response(localID, itemID);
465 } 465 }
466 catch (System.NullReferenceException) 466 catch (System.NullReferenceException)
467 { 467 {
468 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?"); 468 OpenSim.Framework.Console.MainLog.Instance.Error("SCRIPTS", "Error Connecting to Remote Script Server. Is it running?");
469 } 469 }
470 } 470 }
471 471
472 } 472 }
473} \ No newline at end of file 473} \ No newline at end of file