diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/XEngine/XEngine.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs index 35fac4e..7f3bd76 100644 --- a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs +++ b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | |||
@@ -2081,5 +2081,17 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
2081 | // else | 2081 | // else |
2082 | // m_log.DebugFormat("[XEngine]: Could not find script with ID {0} to resume", itemID); | 2082 | // m_log.DebugFormat("[XEngine]: Could not find script with ID {0} to resume", itemID); |
2083 | } | 2083 | } |
2084 | |||
2085 | public bool HasScript(UUID itemID, out bool running) | ||
2086 | { | ||
2087 | running = true; | ||
2088 | |||
2089 | IScriptInstance instance = GetInstance(itemID); | ||
2090 | if (instance == null) | ||
2091 | return false; | ||
2092 | |||
2093 | running = instance.Running; | ||
2094 | return true; | ||
2095 | } | ||
2084 | } | 2096 | } |
2085 | } | 2097 | } |