diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/ExecutorBase.cs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/ExecutorBase.cs b/OpenSim/Region/ScriptEngine/Common/ExecutorBase.cs index 30c40f4..c272400 100644 --- a/OpenSim/Region/ScriptEngine/Common/ExecutorBase.cs +++ b/OpenSim/Region/ScriptEngine/Common/ExecutorBase.cs | |||
@@ -42,6 +42,25 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
42 | /// If set to False events will not be executed. | 42 | /// If set to False events will not be executed. |
43 | /// </summary> | 43 | /// </summary> |
44 | protected bool m_Running = true; | 44 | protected bool m_Running = true; |
45 | /// <summary> | ||
46 | /// True indicates that the ScriptManager has stopped | ||
47 | /// this script. This prevents a script that has been | ||
48 | /// stopped as part of deactivation from being | ||
49 | /// resumed by a pending llSetScriptState request. | ||
50 | /// </summary> | ||
51 | protected bool m_Disable = false; | ||
52 | |||
53 | /// <summary> | ||
54 | /// Indicate the scripts current running status. | ||
55 | /// </summary> | ||
56 | public bool Running | ||
57 | { | ||
58 | get { return m_Running; } | ||
59 | set { | ||
60 | if(!m_Disable) | ||
61 | m_Running = value; | ||
62 | } | ||
63 | } | ||
45 | 64 | ||
46 | /// <summary> | 65 | /// <summary> |
47 | /// Create a new instance of ExecutorBase | 66 | /// Create a new instance of ExecutorBase |
@@ -102,6 +121,8 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
102 | public void StopScript() | 121 | public void StopScript() |
103 | { | 122 | { |
104 | m_Running = false; | 123 | m_Running = false; |
124 | m_Disable = true; | ||
105 | } | 125 | } |
126 | |||
106 | } | 127 | } |
107 | } | 128 | } |