diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/XEngine/EventManager.cs | 35 | ||||
-rw-r--r-- | OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | 86 |
2 files changed, 60 insertions, 61 deletions
diff --git a/OpenSim/Region/ScriptEngine/XEngine/EventManager.cs b/OpenSim/Region/ScriptEngine/XEngine/EventManager.cs index d431286..22abd79 100644 --- a/OpenSim/Region/ScriptEngine/XEngine/EventManager.cs +++ b/OpenSim/Region/ScriptEngine/XEngine/EventManager.cs | |||
@@ -28,7 +28,7 @@ | |||
28 | using System; | 28 | using System; |
29 | using System.Collections; | 29 | using System.Collections; |
30 | using System.Collections.Generic; | 30 | using System.Collections.Generic; |
31 | using libsecondlife; | 31 | using OpenMetaverse; |
32 | using OpenSim.Framework; | 32 | using OpenSim.Framework; |
33 | using OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney; | 33 | using OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney; |
34 | using OpenSim.Region.Interfaces; | 34 | using OpenSim.Region.Interfaces; |
@@ -36,7 +36,6 @@ using OpenSim.Region.Environment.Scenes; | |||
36 | using OpenSim.Region.Environment.Interfaces; | 36 | using OpenSim.Region.Environment.Interfaces; |
37 | using OpenSim.Region.ScriptEngine.Shared; | 37 | using OpenSim.Region.ScriptEngine.Shared; |
38 | using OpenSim.Region.ScriptEngine.Interfaces; | 38 | using OpenSim.Region.ScriptEngine.Interfaces; |
39 | using Axiom.Math; | ||
40 | 39 | ||
41 | namespace OpenSim.Region.ScriptEngine.XEngine | 40 | namespace OpenSim.Region.ScriptEngine.XEngine |
42 | { | 41 | { |
@@ -68,7 +67,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
68 | } | 67 | } |
69 | } | 68 | } |
70 | 69 | ||
71 | private void HandleObjectPaid(LLUUID objectID, LLUUID agentID, | 70 | private void HandleObjectPaid(UUID objectID, UUID agentID, |
72 | int amount) | 71 | int amount) |
73 | { | 72 | { |
74 | SceneObjectPart part = | 73 | SceneObjectPart part = |
@@ -80,7 +79,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
80 | } | 79 | } |
81 | } | 80 | } |
82 | 81 | ||
83 | public void touch_start(uint localID, uint originalID, LLVector3 offsetPos, | 82 | public void touch_start(uint localID, uint originalID, Vector3 offsetPos, |
84 | IClientAPI remoteClient) | 83 | IClientAPI remoteClient) |
85 | { | 84 | { |
86 | // Add to queue for all scripts in ObjectID object | 85 | // Add to queue for all scripts in ObjectID object |
@@ -108,7 +107,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
108 | det)); | 107 | det)); |
109 | } | 108 | } |
110 | 109 | ||
111 | public void touch(uint localID, uint originalID, LLVector3 offsetPos, | 110 | public void touch(uint localID, uint originalID, Vector3 offsetPos, |
112 | IClientAPI remoteClient) | 111 | IClientAPI remoteClient) |
113 | { | 112 | { |
114 | // Add to queue for all scripts in ObjectID object | 113 | // Add to queue for all scripts in ObjectID object |
@@ -177,7 +176,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
177 | // state_entry: not processed here | 176 | // state_entry: not processed here |
178 | // state_exit: not processed here | 177 | // state_exit: not processed here |
179 | 178 | ||
180 | public void money(uint localID, LLUUID agentID, int amount) | 179 | public void money(uint localID, UUID agentID, int amount) |
181 | { | 180 | { |
182 | myScriptEngine.PostObjectEvent(localID, new EventParams( | 181 | myScriptEngine.PostObjectEvent(localID, new EventParams( |
183 | "money", new object[] { | 182 | "money", new object[] { |
@@ -242,7 +241,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
242 | det.ToArray())); | 241 | det.ToArray())); |
243 | } | 242 | } |
244 | 243 | ||
245 | public void land_collision_start(uint localID, LLUUID itemID) | 244 | public void land_collision_start(uint localID, UUID itemID) |
246 | { | 245 | { |
247 | myScriptEngine.PostObjectEvent(localID, new EventParams( | 246 | myScriptEngine.PostObjectEvent(localID, new EventParams( |
248 | "land_collision_start", | 247 | "land_collision_start", |
@@ -250,7 +249,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
250 | new DetectParams[0])); | 249 | new DetectParams[0])); |
251 | } | 250 | } |
252 | 251 | ||
253 | public void land_collision(uint localID, LLUUID itemID) | 252 | public void land_collision(uint localID, UUID itemID) |
254 | { | 253 | { |
255 | myScriptEngine.PostObjectEvent(localID, new EventParams( | 254 | myScriptEngine.PostObjectEvent(localID, new EventParams( |
256 | "land_collision", | 255 | "land_collision", |
@@ -258,7 +257,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
258 | new DetectParams[0])); | 257 | new DetectParams[0])); |
259 | } | 258 | } |
260 | 259 | ||
261 | public void land_collision_end(uint localID, LLUUID itemID) | 260 | public void land_collision_end(uint localID, UUID itemID) |
262 | { | 261 | { |
263 | myScriptEngine.PostObjectEvent(localID, new EventParams( | 262 | myScriptEngine.PostObjectEvent(localID, new EventParams( |
264 | "land_collision_end", | 263 | "land_collision_end", |
@@ -269,7 +268,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
269 | // timer: not handled here | 268 | // timer: not handled here |
270 | // listen: not handled here | 269 | // listen: not handled here |
271 | 270 | ||
272 | public void control(uint localID, LLUUID itemID, LLUUID agentID, uint held, uint change) | 271 | public void control(uint localID, UUID itemID, UUID agentID, uint held, uint change) |
273 | { | 272 | { |
274 | myScriptEngine.PostObjectEvent(localID, new EventParams( | 273 | myScriptEngine.PostObjectEvent(localID, new EventParams( |
275 | "control",new object[] { | 274 | "control",new object[] { |
@@ -279,7 +278,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
279 | new DetectParams[0])); | 278 | new DetectParams[0])); |
280 | } | 279 | } |
281 | 280 | ||
282 | public void email(uint localID, LLUUID itemID, string timeSent, | 281 | public void email(uint localID, UUID itemID, string timeSent, |
283 | string address, string subject, string message, int numLeft) | 282 | string address, string subject, string message, int numLeft) |
284 | { | 283 | { |
285 | myScriptEngine.PostObjectEvent(localID, new EventParams( | 284 | myScriptEngine.PostObjectEvent(localID, new EventParams( |
@@ -292,8 +291,8 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
292 | new DetectParams[0])); | 291 | new DetectParams[0])); |
293 | } | 292 | } |
294 | 293 | ||
295 | public void at_target(uint localID, uint handle, LLVector3 targetpos, | 294 | public void at_target(uint localID, uint handle, Vector3 targetpos, |
296 | LLVector3 atpos) | 295 | Vector3 atpos) |
297 | { | 296 | { |
298 | myScriptEngine.PostObjectEvent(localID, new EventParams( | 297 | myScriptEngine.PostObjectEvent(localID, new EventParams( |
299 | "at_target", new object[] { | 298 | "at_target", new object[] { |
@@ -310,14 +309,14 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
310 | new DetectParams[0])); | 309 | new DetectParams[0])); |
311 | } | 310 | } |
312 | 311 | ||
313 | public void at_rot_target(uint localID, LLUUID itemID) | 312 | public void at_rot_target(uint localID, UUID itemID) |
314 | { | 313 | { |
315 | myScriptEngine.PostObjectEvent(localID, new EventParams( | 314 | myScriptEngine.PostObjectEvent(localID, new EventParams( |
316 | "at_rot_target",new object[0], | 315 | "at_rot_target",new object[0], |
317 | new DetectParams[0])); | 316 | new DetectParams[0])); |
318 | } | 317 | } |
319 | 318 | ||
320 | public void not_at_rot_target(uint localID, LLUUID itemID) | 319 | public void not_at_rot_target(uint localID, UUID itemID) |
321 | { | 320 | { |
322 | myScriptEngine.PostObjectEvent(localID, new EventParams( | 321 | myScriptEngine.PostObjectEvent(localID, new EventParams( |
323 | "not_at_rot_target",new object[0], | 322 | "not_at_rot_target",new object[0], |
@@ -326,7 +325,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
326 | 325 | ||
327 | // run_time_permissions: not handled here | 326 | // run_time_permissions: not handled here |
328 | 327 | ||
329 | public void attach(uint localID, LLUUID itemID, LLUUID avatar) | 328 | public void attach(uint localID, UUID itemID, UUID avatar) |
330 | { | 329 | { |
331 | myScriptEngine.PostObjectEvent(localID, new EventParams( | 330 | myScriptEngine.PostObjectEvent(localID, new EventParams( |
332 | "attach",new object[] { | 331 | "attach",new object[] { |
@@ -337,14 +336,14 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
337 | // dataserver: not handled here | 336 | // dataserver: not handled here |
338 | // link_message: not handled here | 337 | // link_message: not handled here |
339 | 338 | ||
340 | public void moving_start(uint localID, LLUUID itemID) | 339 | public void moving_start(uint localID, UUID itemID) |
341 | { | 340 | { |
342 | myScriptEngine.PostObjectEvent(localID, new EventParams( | 341 | myScriptEngine.PostObjectEvent(localID, new EventParams( |
343 | "moving_start",new object[0], | 342 | "moving_start",new object[0], |
344 | new DetectParams[0])); | 343 | new DetectParams[0])); |
345 | } | 344 | } |
346 | 345 | ||
347 | public void moving_end(uint localID, LLUUID itemID) | 346 | public void moving_end(uint localID, UUID itemID) |
348 | { | 347 | { |
349 | myScriptEngine.PostObjectEvent(localID, new EventParams( | 348 | myScriptEngine.PostObjectEvent(localID, new EventParams( |
350 | "moving_end",new object[0], | 349 | "moving_end",new object[0], |
diff --git a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs index 8ad8110..485531d 100644 --- a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs +++ b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | |||
@@ -34,7 +34,7 @@ using System.Security.Policy; | |||
34 | using System.Reflection; | 34 | using System.Reflection; |
35 | using System.Globalization; | 35 | using System.Globalization; |
36 | using System.Xml; | 36 | using System.Xml; |
37 | using libsecondlife; | 37 | using OpenMetaverse; |
38 | using log4net; | 38 | using log4net; |
39 | using Nini.Config; | 39 | using Nini.Config; |
40 | using Amib.Threading; | 40 | using Amib.Threading; |
@@ -76,28 +76,28 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
76 | 76 | ||
77 | // Maps the local id to the script inventory items in it | 77 | // Maps the local id to the script inventory items in it |
78 | 78 | ||
79 | private Dictionary<uint, List<LLUUID> > m_PrimObjects = | 79 | private Dictionary<uint, List<UUID> > m_PrimObjects = |
80 | new Dictionary<uint, List<LLUUID> >(); | 80 | new Dictionary<uint, List<UUID> >(); |
81 | 81 | ||
82 | // Maps the LLUUID above to the script instance | 82 | // Maps the UUID above to the script instance |
83 | 83 | ||
84 | private Dictionary<LLUUID, IScriptInstance> m_Scripts = | 84 | private Dictionary<UUID, IScriptInstance> m_Scripts = |
85 | new Dictionary<LLUUID, IScriptInstance>(); | 85 | new Dictionary<UUID, IScriptInstance>(); |
86 | 86 | ||
87 | // Maps the asset ID to the assembly | 87 | // Maps the asset ID to the assembly |
88 | 88 | ||
89 | private Dictionary<LLUUID, string> m_Assemblies = | 89 | private Dictionary<UUID, string> m_Assemblies = |
90 | new Dictionary<LLUUID, string>(); | 90 | new Dictionary<UUID, string>(); |
91 | 91 | ||
92 | // This will list AppDomains by script asset | 92 | // This will list AppDomains by script asset |
93 | 93 | ||
94 | private Dictionary<LLUUID, AppDomain> m_AppDomains = | 94 | private Dictionary<UUID, AppDomain> m_AppDomains = |
95 | new Dictionary<LLUUID, AppDomain>(); | 95 | new Dictionary<UUID, AppDomain>(); |
96 | 96 | ||
97 | // List the scripts running in each appdomain | 97 | // List the scripts running in each appdomain |
98 | 98 | ||
99 | private Dictionary<LLUUID, List<LLUUID> > m_DomainScripts = | 99 | private Dictionary<UUID, List<UUID> > m_DomainScripts = |
100 | new Dictionary<LLUUID, List<LLUUID> >(); | 100 | new Dictionary<UUID, List<UUID> >(); |
101 | 101 | ||
102 | private Queue m_CompileQueue = new Queue(100); | 102 | private Queue m_CompileQueue = new Queue(100); |
103 | IWorkItemResult m_CurrentCompile = null; | 103 | IWorkItemResult m_CurrentCompile = null; |
@@ -125,7 +125,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
125 | // private struct RezScriptParms | 125 | // private struct RezScriptParms |
126 | // { | 126 | // { |
127 | // uint LocalID; | 127 | // uint LocalID; |
128 | // LLUUID ItemID; | 128 | // UUID ItemID; |
129 | // string Script; | 129 | // string Script; |
130 | // } | 130 | // } |
131 | 131 | ||
@@ -314,7 +314,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
314 | get { return false; } | 314 | get { return false; } |
315 | } | 315 | } |
316 | 316 | ||
317 | public void OnRezScript(uint localID, LLUUID itemID, string script, int startParam, bool postOnRez) | 317 | public void OnRezScript(uint localID, UUID itemID, string script, int startParam, bool postOnRez) |
318 | { | 318 | { |
319 | Object[] parms = new Object[]{localID, itemID, script, startParam, postOnRez}; | 319 | Object[] parms = new Object[]{localID, itemID, script, startParam, postOnRez}; |
320 | 320 | ||
@@ -395,7 +395,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
395 | { | 395 | { |
396 | Object[] p = (Object[])parm; | 396 | Object[] p = (Object[])parm; |
397 | uint localID = (uint)p[0]; | 397 | uint localID = (uint)p[0]; |
398 | LLUUID itemID = (LLUUID)p[1]; | 398 | UUID itemID = (UUID)p[1]; |
399 | string script =(string)p[2]; | 399 | string script =(string)p[2]; |
400 | int startParam = (int)p[3]; | 400 | int startParam = (int)p[3]; |
401 | bool postOnRez = (bool)p[4]; | 401 | bool postOnRez = (bool)p[4]; |
@@ -411,7 +411,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
411 | if (item == null) | 411 | if (item == null) |
412 | return false; | 412 | return false; |
413 | 413 | ||
414 | LLUUID assetID = item.AssetID; | 414 | UUID assetID = item.AssetID; |
415 | 415 | ||
416 | // m_log.DebugFormat("[XEngine] Compiling script {0} ({1})", | 416 | // m_log.DebugFormat("[XEngine] Compiling script {0} ({1})", |
417 | // item.Name, itemID.ToString()); | 417 | // item.Name, itemID.ToString()); |
@@ -430,7 +430,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
430 | string text = "Error compiling script:\r\n" + e.Message.ToString(); | 430 | string text = "Error compiling script:\r\n" + e.Message.ToString(); |
431 | if (text.Length > 1000) | 431 | if (text.Length > 1000) |
432 | text = text.Substring(0, 1000); | 432 | text = text.Substring(0, 1000); |
433 | World.SimChat(Helpers.StringToField(text), | 433 | World.SimChat(Utils.StringToBytes(text), |
434 | ChatTypeEnum.DebugChannel, 2147483647, | 434 | ChatTypeEnum.DebugChannel, 2147483647, |
435 | part.AbsolutePosition, | 435 | part.AbsolutePosition, |
436 | part.Name, part.UUID, false); | 436 | part.Name, part.UUID, false); |
@@ -455,7 +455,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
455 | if ((!m_Scripts.ContainsKey(itemID)) || | 455 | if ((!m_Scripts.ContainsKey(itemID)) || |
456 | (m_Scripts[itemID].AssetID != assetID)) | 456 | (m_Scripts[itemID].AssetID != assetID)) |
457 | { | 457 | { |
458 | LLUUID appDomain = assetID; | 458 | UUID appDomain = assetID; |
459 | 459 | ||
460 | if (part.ParentGroup.RootPart.IsAttachment) | 460 | if (part.ParentGroup.RootPart.IsAttachment) |
461 | appDomain = part.ParentGroup.RootPart.UUID; | 461 | appDomain = part.ParentGroup.RootPart.UUID; |
@@ -480,7 +480,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
480 | m_AppDomains[appDomain].AssemblyResolve += | 480 | m_AppDomains[appDomain].AssemblyResolve += |
481 | new ResolveEventHandler( | 481 | new ResolveEventHandler( |
482 | AssemblyResolver.OnAssemblyResolve); | 482 | AssemblyResolver.OnAssemblyResolve); |
483 | m_DomainScripts[appDomain] = new List<LLUUID>(); | 483 | m_DomainScripts[appDomain] = new List<UUID>(); |
484 | } | 484 | } |
485 | catch (Exception e) | 485 | catch (Exception e) |
486 | { | 486 | { |
@@ -507,7 +507,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
507 | } | 507 | } |
508 | 508 | ||
509 | if (!m_PrimObjects.ContainsKey(localID)) | 509 | if (!m_PrimObjects.ContainsKey(localID)) |
510 | m_PrimObjects[localID] = new List<LLUUID>(); | 510 | m_PrimObjects[localID] = new List<UUID>(); |
511 | 511 | ||
512 | if (!m_PrimObjects[localID].Contains(itemID)) | 512 | if (!m_PrimObjects[localID].Contains(itemID)) |
513 | m_PrimObjects[localID].Add(itemID); | 513 | m_PrimObjects[localID].Add(itemID); |
@@ -518,7 +518,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
518 | return true; | 518 | return true; |
519 | } | 519 | } |
520 | 520 | ||
521 | public void OnRemoveScript(uint localID, LLUUID itemID) | 521 | public void OnRemoveScript(uint localID, UUID itemID) |
522 | { | 522 | { |
523 | lock (m_Scripts) | 523 | lock (m_Scripts) |
524 | { | 524 | { |
@@ -569,24 +569,24 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
569 | } | 569 | } |
570 | } | 570 | } |
571 | 571 | ||
572 | public void OnScriptReset(uint localID, LLUUID itemID) | 572 | public void OnScriptReset(uint localID, UUID itemID) |
573 | { | 573 | { |
574 | ResetScript(itemID); | 574 | ResetScript(itemID); |
575 | } | 575 | } |
576 | 576 | ||
577 | public void OnStartScript(uint localID, LLUUID itemID) | 577 | public void OnStartScript(uint localID, UUID itemID) |
578 | { | 578 | { |
579 | StartScript(itemID); | 579 | StartScript(itemID); |
580 | } | 580 | } |
581 | 581 | ||
582 | public void OnStopScript(uint localID, LLUUID itemID) | 582 | public void OnStopScript(uint localID, UUID itemID) |
583 | { | 583 | { |
584 | StopScript(itemID); | 584 | StopScript(itemID); |
585 | } | 585 | } |
586 | 586 | ||
587 | private void CleanAssemblies() | 587 | private void CleanAssemblies() |
588 | { | 588 | { |
589 | List<LLUUID> assetIDList = new List<LLUUID>(m_Assemblies.Keys); | 589 | List<UUID> assetIDList = new List<UUID>(m_Assemblies.Keys); |
590 | 590 | ||
591 | foreach (IScriptInstance i in m_Scripts.Values) | 591 | foreach (IScriptInstance i in m_Scripts.Values) |
592 | { | 592 | { |
@@ -594,7 +594,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
594 | assetIDList.Remove(i.AssetID); | 594 | assetIDList.Remove(i.AssetID); |
595 | } | 595 | } |
596 | 596 | ||
597 | foreach (LLUUID assetID in assetIDList) | 597 | foreach (UUID assetID in assetIDList) |
598 | { | 598 | { |
599 | // m_log.DebugFormat("[XEngine] Removing unreferenced assembly {0}", m_Assemblies[assetID]); | 599 | // m_log.DebugFormat("[XEngine] Removing unreferenced assembly {0}", m_Assemblies[assetID]); |
600 | try | 600 | try |
@@ -615,7 +615,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
615 | } | 615 | } |
616 | } | 616 | } |
617 | 617 | ||
618 | private void UnloadAppDomain(LLUUID id) | 618 | private void UnloadAppDomain(UUID id) |
619 | { | 619 | { |
620 | if (m_AppDomains.ContainsKey(id)) | 620 | if (m_AppDomains.ContainsKey(id)) |
621 | { | 621 | { |
@@ -681,7 +681,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
681 | if (!m_PrimObjects.ContainsKey(localID)) | 681 | if (!m_PrimObjects.ContainsKey(localID)) |
682 | return false; | 682 | return false; |
683 | 683 | ||
684 | foreach (LLUUID itemID in m_PrimObjects[localID]) | 684 | foreach (UUID itemID in m_PrimObjects[localID]) |
685 | { | 685 | { |
686 | if (m_Scripts.ContainsKey(itemID)) | 686 | if (m_Scripts.ContainsKey(itemID)) |
687 | { | 687 | { |
@@ -699,7 +699,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
699 | // | 699 | // |
700 | // Post an event to a single script | 700 | // Post an event to a single script |
701 | // | 701 | // |
702 | public bool PostScriptEvent(LLUUID itemID, EventParams p) | 702 | public bool PostScriptEvent(UUID itemID, EventParams p) |
703 | { | 703 | { |
704 | if (m_Scripts.ContainsKey(itemID)) | 704 | if (m_Scripts.ContainsKey(itemID)) |
705 | { | 705 | { |
@@ -737,7 +737,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
737 | return null; | 737 | return null; |
738 | } | 738 | } |
739 | 739 | ||
740 | private IScriptInstance GetInstance(LLUUID itemID) | 740 | private IScriptInstance GetInstance(UUID itemID) |
741 | { | 741 | { |
742 | IScriptInstance instance; | 742 | IScriptInstance instance; |
743 | lock (m_Scripts) | 743 | lock (m_Scripts) |
@@ -749,7 +749,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
749 | return instance; | 749 | return instance; |
750 | } | 750 | } |
751 | 751 | ||
752 | public void SetScriptState(LLUUID itemID, bool running) | 752 | public void SetScriptState(UUID itemID, bool running) |
753 | { | 753 | { |
754 | IScriptInstance instance = GetInstance(itemID); | 754 | IScriptInstance instance = GetInstance(itemID); |
755 | if (instance != null) | 755 | if (instance != null) |
@@ -761,7 +761,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
761 | } | 761 | } |
762 | } | 762 | } |
763 | 763 | ||
764 | public bool GetScriptState(LLUUID itemID) | 764 | public bool GetScriptState(UUID itemID) |
765 | { | 765 | { |
766 | IScriptInstance instance = GetInstance(itemID); | 766 | IScriptInstance instance = GetInstance(itemID); |
767 | if (instance != null) | 767 | if (instance != null) |
@@ -769,35 +769,35 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
769 | return false; | 769 | return false; |
770 | } | 770 | } |
771 | 771 | ||
772 | public void ApiResetScript(LLUUID itemID) | 772 | public void ApiResetScript(UUID itemID) |
773 | { | 773 | { |
774 | IScriptInstance instance = GetInstance(itemID); | 774 | IScriptInstance instance = GetInstance(itemID); |
775 | if (instance != null) | 775 | if (instance != null) |
776 | instance.ApiResetScript(); | 776 | instance.ApiResetScript(); |
777 | } | 777 | } |
778 | 778 | ||
779 | public void ResetScript(LLUUID itemID) | 779 | public void ResetScript(UUID itemID) |
780 | { | 780 | { |
781 | IScriptInstance instance = GetInstance(itemID); | 781 | IScriptInstance instance = GetInstance(itemID); |
782 | if (instance != null) | 782 | if (instance != null) |
783 | instance.ResetScript(); | 783 | instance.ResetScript(); |
784 | } | 784 | } |
785 | 785 | ||
786 | public void StartScript(LLUUID itemID) | 786 | public void StartScript(UUID itemID) |
787 | { | 787 | { |
788 | IScriptInstance instance = GetInstance(itemID); | 788 | IScriptInstance instance = GetInstance(itemID); |
789 | if (instance != null) | 789 | if (instance != null) |
790 | instance.Start(); | 790 | instance.Start(); |
791 | } | 791 | } |
792 | 792 | ||
793 | public void StopScript(LLUUID itemID) | 793 | public void StopScript(UUID itemID) |
794 | { | 794 | { |
795 | IScriptInstance instance = GetInstance(itemID); | 795 | IScriptInstance instance = GetInstance(itemID); |
796 | if (instance != null) | 796 | if (instance != null) |
797 | instance.Stop(0); | 797 | instance.Stop(0); |
798 | } | 798 | } |
799 | 799 | ||
800 | public DetectParams GetDetectParams(LLUUID itemID, int idx) | 800 | public DetectParams GetDetectParams(UUID itemID, int idx) |
801 | { | 801 | { |
802 | IScriptInstance instance = GetInstance(itemID); | 802 | IScriptInstance instance = GetInstance(itemID); |
803 | if (instance != null) | 803 | if (instance != null) |
@@ -805,22 +805,22 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
805 | return null; | 805 | return null; |
806 | } | 806 | } |
807 | 807 | ||
808 | public LLUUID GetDetectID(LLUUID itemID, int idx) | 808 | public UUID GetDetectID(UUID itemID, int idx) |
809 | { | 809 | { |
810 | IScriptInstance instance = GetInstance(itemID); | 810 | IScriptInstance instance = GetInstance(itemID); |
811 | if (instance != null) | 811 | if (instance != null) |
812 | return instance.GetDetectID(idx); | 812 | return instance.GetDetectID(idx); |
813 | return LLUUID.Zero; | 813 | return UUID.Zero; |
814 | } | 814 | } |
815 | 815 | ||
816 | public void SetState(LLUUID itemID, string newState) | 816 | public void SetState(UUID itemID, string newState) |
817 | { | 817 | { |
818 | IScriptInstance instance = GetInstance(itemID); | 818 | IScriptInstance instance = GetInstance(itemID); |
819 | if (instance == null) | 819 | if (instance == null) |
820 | return; | 820 | return; |
821 | instance.SetState(newState); | 821 | instance.SetState(newState); |
822 | } | 822 | } |
823 | public string GetState(LLUUID itemID) | 823 | public string GetState(UUID itemID) |
824 | { | 824 | { |
825 | IScriptInstance instance = GetInstance(itemID); | 825 | IScriptInstance instance = GetInstance(itemID); |
826 | if (instance == null) | 826 | if (instance == null) |
@@ -828,7 +828,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
828 | return instance.State; | 828 | return instance.State; |
829 | } | 829 | } |
830 | 830 | ||
831 | public int GetStartParameter(LLUUID itemID) | 831 | public int GetStartParameter(UUID itemID) |
832 | { | 832 | { |
833 | IScriptInstance instance = GetInstance(itemID); | 833 | IScriptInstance instance = GetInstance(itemID); |
834 | if (instance == null) | 834 | if (instance == null) |
@@ -836,7 +836,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
836 | return instance.StartParam; | 836 | return instance.StartParam; |
837 | } | 837 | } |
838 | 838 | ||
839 | public bool GetScriptRunning(LLUUID objectID, LLUUID itemID) | 839 | public bool GetScriptRunning(UUID objectID, UUID itemID) |
840 | { | 840 | { |
841 | return GetScriptState(itemID); | 841 | return GetScriptState(itemID); |
842 | } | 842 | } |