From 1cf0798863a52a89e55b2d9e86df6822b02e127e Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Fri, 3 Oct 2008 05:32:51 +0000 Subject: Plumb in the start parameter in DNE --- OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs | 2 +- OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/ScriptEngine/DotNetEngine') diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs index ee64c41..76bf41b 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs @@ -236,7 +236,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine public int GetStartParameter(UUID itemID) { - return 0; + return m_ScriptManager.GetStartParameter(itemID); } #endregion diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs index 627b2a7..875b29e 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs @@ -611,5 +611,15 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine return null; } + + public int GetStartParameter(UUID itemID) + { + + uint localID = GetLocalID(itemID); + + InstanceData id = GetScript(localID, itemID); + + return id.StartParam; + } } } -- cgit v1.1