diff options
author | Melanie | 2010-04-19 07:00:40 +0100 |
---|---|---|
committer | Melanie | 2010-04-19 07:00:40 +0100 |
commit | 98cb4f74b265dfb8ca3eb8c8d3ad604249398df1 (patch) | |
tree | 1339d3707430a20662bdcd3eb4e9ef86abc6a4fd /OpenSim/Region/ScriptEngine/XEngine | |
parent | Merge branch 'master' into careminster-presence-refactor (diff) | |
parent | All scripts are now created suspended and are only unsuspended when the object (diff) | |
download | opensim-SC-98cb4f74b265dfb8ca3eb8c8d3ad604249398df1.zip opensim-SC-98cb4f74b265dfb8ca3eb8c8d3ad604249398df1.tar.gz opensim-SC-98cb4f74b265dfb8ca3eb8c8d3ad604249398df1.tar.bz2 opensim-SC-98cb4f74b265dfb8ca3eb8c8d3ad604249398df1.tar.xz |
Merge branch 'master' into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Region/ScriptEngine/XEngine')
-rw-r--r-- | OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs index 35d57d8..463b052 100644 --- a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs +++ b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | |||
@@ -1570,5 +1570,23 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
1570 | return new ArrayList(); | 1570 | return new ArrayList(); |
1571 | } | 1571 | } |
1572 | } | 1572 | } |
1573 | |||
1574 | public void SuspendScript(UUID itemID) | ||
1575 | { | ||
1576 | IScriptInstance instance = GetInstance(itemID); | ||
1577 | if (instance == null) | ||
1578 | return; | ||
1579 | |||
1580 | instance.Suspend(); | ||
1581 | } | ||
1582 | |||
1583 | public void ResumeScript(UUID itemID) | ||
1584 | { | ||
1585 | IScriptInstance instance = GetInstance(itemID); | ||
1586 | if (instance == null) | ||
1587 | return; | ||
1588 | |||
1589 | instance.Resume(); | ||
1590 | } | ||
1573 | } | 1591 | } |
1574 | } | 1592 | } |