aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
index cd128a9..1f57c13 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
@@ -83,6 +83,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
83 private int m_ControlEventsInQueue = 0; 83 private int m_ControlEventsInQueue = 0;
84 private int m_LastControlLevel = 0; 84 private int m_LastControlLevel = 0;
85 private bool m_CollisionInQueue = false; 85 private bool m_CollisionInQueue = false;
86 private TaskInventoryItem m_thisScriptTask;
87
86 //private ISponsor m_ScriptSponsor; 88 //private ISponsor m_ScriptSponsor;
87 private Dictionary<KeyValuePair<int, int>, KeyValuePair<int, int>> 89 private Dictionary<KeyValuePair<int, int>, KeyValuePair<int, int>>
88 m_LineMap; 90 m_LineMap;
@@ -177,6 +179,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
177 set { m_StartParam = value; } 179 set { m_StartParam = value; }
178 } 180 }
179 181
182 public TaskInventoryItem ScriptTask
183 {
184 get { return m_thisScriptTask; }
185 }
186
180 public ScriptInstance(IScriptEngine engine, SceneObjectPart part, 187 public ScriptInstance(IScriptEngine engine, SceneObjectPart part,
181 UUID itemID, UUID assetID, string assembly, 188 UUID itemID, UUID assetID, string assembly,
182 AppDomain dom, string primName, string scriptName, 189 AppDomain dom, string primName, string scriptName,
@@ -195,6 +202,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
195 m_StartParam = startParam; 202 m_StartParam = startParam;
196 m_MaxScriptQueue = maxScriptQueue; 203 m_MaxScriptQueue = maxScriptQueue;
197 204
205 if (part != null && part.TaskInventory.ContainsKey(m_ItemID))
206 {
207 m_thisScriptTask = part.TaskInventory[m_ItemID];
208 }
209
198 ApiManager am = new ApiManager(); 210 ApiManager am = new ApiManager();
199 211
200 foreach (string api in am.GetApis()) 212 foreach (string api in am.GetApis())