diff options
author | Jeff Ames | 2008-06-04 09:59:27 +0000 |
---|---|---|
committer | Jeff Ames | 2008-06-04 09:59:27 +0000 |
commit | 4ec4e16c809cf86a63b736d2b7b6ad7291595a5f (patch) | |
tree | cfa896ef9057228171e2ee39c4807060101ba90b /OpenSim/Region/ScriptEngine/XEngine/AsyncCommandPlugins/SensorRepeat.cs | |
parent | * If a ThreadAbortException reaches AuthUser() then let it pass through unmol... (diff) | |
download | opensim-SC-4ec4e16c809cf86a63b736d2b7b6ad7291595a5f.zip opensim-SC-4ec4e16c809cf86a63b736d2b7b6ad7291595a5f.tar.gz opensim-SC-4ec4e16c809cf86a63b736d2b7b6ad7291595a5f.tar.bz2 opensim-SC-4ec4e16c809cf86a63b736d2b7b6ad7291595a5f.tar.xz |
Formatting cleanup, minor refactoring, svn properties.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/XEngine/AsyncCommandPlugins/SensorRepeat.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/XEngine/AsyncCommandPlugins/SensorRepeat.cs | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/OpenSim/Region/ScriptEngine/XEngine/AsyncCommandPlugins/SensorRepeat.cs b/OpenSim/Region/ScriptEngine/XEngine/AsyncCommandPlugins/SensorRepeat.cs index 5a87bb0..dbd6c33 100644 --- a/OpenSim/Region/ScriptEngine/XEngine/AsyncCommandPlugins/SensorRepeat.cs +++ b/OpenSim/Region/ScriptEngine/XEngine/AsyncCommandPlugins/SensorRepeat.cs | |||
@@ -69,7 +69,8 @@ namespace OpenSim.Region.ScriptEngine.XEngine.AsyncCommandPlugins | |||
69 | private object SenseRepeatListLock = new object(); | 69 | private object SenseRepeatListLock = new object(); |
70 | 70 | ||
71 | public void SetSenseRepeatEvent(uint m_localID, LLUUID m_itemID, | 71 | public void SetSenseRepeatEvent(uint m_localID, LLUUID m_itemID, |
72 | string name, LLUUID keyID, int type, double range, double arc, double sec, SceneObjectPart host) | 72 | string name, LLUUID keyID, int type, double range, |
73 | double arc, double sec, SceneObjectPart host) | ||
73 | { | 74 | { |
74 | Console.WriteLine("SetSensorEvent"); | 75 | Console.WriteLine("SetSensorEvent"); |
75 | 76 | ||
@@ -319,7 +320,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine.AsyncCommandPlugins | |||
319 | new XDetectParams[SensedObjects.Length]; | 320 | new XDetectParams[SensedObjects.Length]; |
320 | 321 | ||
321 | int idx; | 322 | int idx; |
322 | for(idx = 0 ; idx < SensedObjects.Length; idx++) | 323 | for (idx = 0; idx < SensedObjects.Length; idx++) |
323 | { | 324 | { |
324 | detect[idx].Key=(LLUUID)(SensedObjects.Data[idx]); | 325 | detect[idx].Key=(LLUUID)(SensedObjects.Data[idx]); |
325 | } | 326 | } |
@@ -339,7 +340,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine.AsyncCommandPlugins | |||
339 | 340 | ||
340 | foreach (SenseRepeatClass ts in SenseRepeaters) | 341 | foreach (SenseRepeatClass ts in SenseRepeaters) |
341 | { | 342 | { |
342 | if(ts.itemID == itemID) | 343 | if (ts.itemID == itemID) |
343 | { | 344 | { |
344 | data.Add(ts.interval); | 345 | data.Add(ts.interval); |
345 | data.Add(ts.name); | 346 | data.Add(ts.name); |
@@ -353,18 +354,18 @@ namespace OpenSim.Region.ScriptEngine.XEngine.AsyncCommandPlugins | |||
353 | } | 354 | } |
354 | 355 | ||
355 | public void CreateFromData(uint localID, LLUUID itemID, LLUUID objectID, | 356 | public void CreateFromData(uint localID, LLUUID itemID, LLUUID objectID, |
356 | Object[] data) | 357 | Object[] data) |
357 | { | 358 | { |
358 | SceneObjectPart part = | 359 | SceneObjectPart part = |
359 | m_CmdManager.m_ScriptEngine.World.GetSceneObjectPart( | 360 | m_CmdManager.m_ScriptEngine.World.GetSceneObjectPart( |
360 | objectID); | 361 | objectID); |
361 | 362 | ||
362 | if(part == null) | 363 | if (part == null) |
363 | return; | 364 | return; |
364 | 365 | ||
365 | int idx=0; | 366 | int idx = 0; |
366 | 367 | ||
367 | while(idx < data.Length) | 368 | while (idx < data.Length) |
368 | { | 369 | { |
369 | SenseRepeatClass ts = new SenseRepeatClass(); | 370 | SenseRepeatClass ts = new SenseRepeatClass(); |
370 | 371 | ||
@@ -380,12 +381,11 @@ namespace OpenSim.Region.ScriptEngine.XEngine.AsyncCommandPlugins | |||
380 | ts.host = part; | 381 | ts.host = part; |
381 | 382 | ||
382 | ts.next = | 383 | ts.next = |
383 | DateTime.Now.ToUniversalTime().AddSeconds(ts.interval); | 384 | DateTime.Now.ToUniversalTime().AddSeconds(ts.interval); |
384 | 385 | ||
385 | SenseRepeaters.Add(ts); | 386 | SenseRepeaters.Add(ts); |
386 | idx += 6; | 387 | idx += 6; |
387 | } | 388 | } |
388 | } | 389 | } |
389 | |||
390 | } | 390 | } |
391 | } | 391 | } |