From d7a19adcac21e2c19d01755de803d5210d4821ea Mon Sep 17 00:00:00 2001 From: idb Date: Sun, 21 Dec 2008 13:28:51 +0000 Subject: Persist script permission mask and granter --- .../Region/ScriptEngine/Shared/Instance/ScriptInstance.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs') 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 private int m_ControlEventsInQueue = 0; private int m_LastControlLevel = 0; private bool m_CollisionInQueue = false; + private TaskInventoryItem m_thisScriptTask; + //private ISponsor m_ScriptSponsor; private Dictionary, KeyValuePair> m_LineMap; @@ -177,6 +179,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance set { m_StartParam = value; } } + public TaskInventoryItem ScriptTask + { + get { return m_thisScriptTask; } + } + public ScriptInstance(IScriptEngine engine, SceneObjectPart part, UUID itemID, UUID assetID, string assembly, AppDomain dom, string primName, string scriptName, @@ -195,6 +202,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance m_StartParam = startParam; m_MaxScriptQueue = maxScriptQueue; + if (part != null && part.TaskInventory.ContainsKey(m_ItemID)) + { + m_thisScriptTask = part.TaskInventory[m_ItemID]; + } + ApiManager am = new ApiManager(); foreach (string api in am.GetApis()) -- cgit v1.1