aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Interfaces/IScriptInstance.cs
diff options
context:
space:
mode:
authorOren Hurvitz2015-08-07 16:35:32 +0300
committerOren Hurvitz2015-08-11 08:44:27 +0100
commit59da146e9dd678aea2e0bd3e16ef178c183754a0 (patch)
tree4b6cfebfd3d0a41cc51dcd2eac377ce9cfbe8d2c /OpenSim/Region/ScriptEngine/Interfaces/IScriptInstance.cs
parentWhen scripts are sleeping, don't count that as execution time (diff)
downloadopensim-SC_OLD-59da146e9dd678aea2e0bd3e16ef178c183754a0.zip
opensim-SC_OLD-59da146e9dd678aea2e0bd3e16ef178c183754a0.tar.gz
opensim-SC_OLD-59da146e9dd678aea2e0bd3e16ef178c183754a0.tar.bz2
opensim-SC_OLD-59da146e9dd678aea2e0bd3e16ef178c183754a0.tar.xz
When the user stops a script, have it remain stopped
Previously the script state was never saved for a !Running script, so upon region restart the script would be Running again. The use of the 'StayStopped' flag is needed because all scripts are automatically stopped when the region shuts down, but in that case we shouldn't save in their state that they're !Running.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Interfaces/IScriptInstance.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/Interfaces/IScriptInstance.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Interfaces/IScriptInstance.cs b/OpenSim/Region/ScriptEngine/Interfaces/IScriptInstance.cs
index f695eba..16641f7 100644
--- a/OpenSim/Region/ScriptEngine/Interfaces/IScriptInstance.cs
+++ b/OpenSim/Region/ScriptEngine/Interfaces/IScriptInstance.cs
@@ -93,6 +93,11 @@ namespace OpenSim.Region.ScriptEngine.Interfaces
93 bool ShuttingDown { get; set; } 93 bool ShuttingDown { get; set; }
94 94
95 /// <summary> 95 /// <summary>
96 /// When stopping the script: should it remain stopped permanently (i.e., save !Running in its state)?
97 /// </summary>
98 bool StayStopped { get; set; }
99
100 /// <summary>
96 /// Script state 101 /// Script state
97 /// </summary> 102 /// </summary>
98 string State { get; set; } 103 string State { get; set; }