diff options
author | Teravus Ovares | 2008-04-30 03:36:13 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-04-30 03:36:13 +0000 |
commit | 36bf16d35e928a338c932feeec42c0c8f35d8846 (patch) | |
tree | 06f11a4c546fce85fe1504fce08a09dd4bdebb06 /OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins | |
parent | * Disabled IntergridModule until a Mono bug can be isolated. (diff) | |
download | opensim-SC-36bf16d35e928a338c932feeec42c0c8f35d8846.zip opensim-SC-36bf16d35e928a338c932feeec42c0c8f35d8846.tar.gz opensim-SC-36bf16d35e928a338c932feeec42c0c8f35d8846.tar.bz2 opensim-SC-36bf16d35e928a338c932feeec42c0c8f35d8846.tar.xz |
Patch from Melanie: 0001077: [PATCH] LSL types cannot be cast implicitly or explicitly in many cases Thanks Melanie!
* Also, I moved the event parser and re-writer to a separate static object. More work will be done here shortly.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins')
4 files changed, 9 insertions, 9 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/HttpRequest.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/HttpRequest.cs index 521402e..4b7ee84 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/HttpRequest.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/HttpRequest.cs | |||
@@ -72,7 +72,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.AsyncCommandPlugin | |||
72 | { | 72 | { |
73 | object[] resobj = new object[] | 73 | object[] resobj = new object[] |
74 | { | 74 | { |
75 | httpInfo.reqID.ToString(), httpInfo.status, null, httpInfo.response_body | 75 | new LSL_Types.LSLString(httpInfo.reqID.ToString()), new LSL_Types.LSLInteger(httpInfo.status), null, new LSL_Types.LSLString(httpInfo.response_body) |
76 | }; | 76 | }; |
77 | 77 | ||
78 | sman.m_EventQueueManager.AddToScriptQueue( | 78 | sman.m_EventQueueManager.AddToScriptQueue( |
diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/Listener.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/Listener.cs index 874a905..2b68360 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/Listener.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/Listener.cs | |||
@@ -58,7 +58,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.AsyncCommandPlugin | |||
58 | object[] resobj = new object[] | 58 | object[] resobj = new object[] |
59 | { | 59 | { |
60 | //lInfo.GetChannel(), lInfo.GetName(), lInfo.GetID().ToString(), lInfo.GetMessage() | 60 | //lInfo.GetChannel(), lInfo.GetName(), lInfo.GetID().ToString(), lInfo.GetMessage() |
61 | lInfo.GetChannel(), lInfo.GetName(), lInfo.GetSourceItemID().ToString(), lInfo.GetMessage() | 61 | new LSL_Types.LSLInteger(lInfo.GetChannel()), new LSL_Types.LSLString(lInfo.GetName()), new LSL_Types.LSLString(lInfo.GetSourceItemID().ToString()), new LSL_Types.LSLString(lInfo.GetMessage()) |
62 | }; | 62 | }; |
63 | 63 | ||
64 | m_CmdManager.m_ScriptEngine.m_EventQueueManager.AddToScriptQueue( | 64 | m_CmdManager.m_ScriptEngine.m_EventQueueManager.AddToScriptQueue( |
diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/SensorRepeat.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/SensorRepeat.cs index 71ae80c..1210b77 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/SensorRepeat.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/SensorRepeat.cs | |||
@@ -314,7 +314,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.AsyncCommandPlugin | |||
314 | else | 314 | else |
315 | { | 315 | { |
316 | m_CmdManager.m_ScriptEngine.m_EventQueueManager.AddToScriptQueue(ts.localID, ts.itemID, "sensor", EventQueueManager.llDetectNull, | 316 | m_CmdManager.m_ScriptEngine.m_EventQueueManager.AddToScriptQueue(ts.localID, ts.itemID, "sensor", EventQueueManager.llDetectNull, |
317 | new object[] { SensedObjects.Length }); | 317 | new object[] { new LSL_Types.LSLInteger(SensedObjects.Length) }); |
318 | } | 318 | } |
319 | } | 319 | } |
320 | } | 320 | } |
diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/XmlRequest.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/XmlRequest.cs index c3e1804..63c529a 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/XmlRequest.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/XmlRequest.cs | |||
@@ -60,9 +60,9 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.AsyncCommandPlugin | |||
60 | //Deliver data to prim's remote_data handler | 60 | //Deliver data to prim's remote_data handler |
61 | object[] resobj = new object[] | 61 | object[] resobj = new object[] |
62 | { | 62 | { |
63 | 2, rInfo.GetChannelKey().ToString(), rInfo.GetMessageID().ToString(), String.Empty, | 63 | new LSL_Types.LSLInteger(2), new LSL_Types.LSLString(rInfo.GetChannelKey().ToString()), new LSL_Types.LSLString(rInfo.GetMessageID().ToString()), new LSL_Types.LSLString(String.Empty), |
64 | rInfo.GetIntValue(), | 64 | new LSL_Types.LSLInteger(rInfo.GetIntValue()), |
65 | rInfo.GetStrVal() | 65 | new LSL_Types.LSLString(rInfo.GetStrVal()) |
66 | }; | 66 | }; |
67 | m_CmdManager.m_ScriptEngine.m_EventQueueManager.AddToScriptQueue( | 67 | m_CmdManager.m_ScriptEngine.m_EventQueueManager.AddToScriptQueue( |
68 | rInfo.GetLocalID(), rInfo.GetItemID(), "remote_data", EventQueueManager.llDetectNull, resobj | 68 | rInfo.GetLocalID(), rInfo.GetItemID(), "remote_data", EventQueueManager.llDetectNull, resobj |
@@ -83,9 +83,9 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.AsyncCommandPlugin | |||
83 | //Deliver data to prim's remote_data handler | 83 | //Deliver data to prim's remote_data handler |
84 | object[] resobj = new object[] | 84 | object[] resobj = new object[] |
85 | { | 85 | { |
86 | 3, srdInfo.channel.ToString(), srdInfo.GetReqID().ToString(), String.Empty, | 86 | new LSL_Types.LSLInteger(3), new LSL_Types.LSLString(srdInfo.channel.ToString()), new LSL_Types.LSLString(srdInfo.GetReqID().ToString()), new LSL_Types.LSLString(String.Empty), |
87 | srdInfo.idata, | 87 | new LSL_Types.LSLInteger(srdInfo.idata), |
88 | srdInfo.sdata | 88 | new LSL_Types.LSLString(srdInfo.sdata) |
89 | }; | 89 | }; |
90 | m_CmdManager.m_ScriptEngine.m_EventQueueManager.AddToScriptQueue( | 90 | m_CmdManager.m_ScriptEngine.m_EventQueueManager.AddToScriptQueue( |
91 | srdInfo.m_localID, srdInfo.m_itemID, "remote_data", EventQueueManager.llDetectNull, resobj | 91 | srdInfo.m_localID, srdInfo.m_itemID, "remote_data", EventQueueManager.llDetectNull, resobj |