diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptEngine.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptEngine.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptEngine.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptEngine.cs index fa40947..cfcc36e 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptEngine.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptEngine.cs | |||
@@ -55,6 +55,15 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase | |||
55 | public IConfig ScriptConfigSource; | 55 | public IConfig ScriptConfigSource; |
56 | public abstract string ScriptConfigSourceName { get; } | 56 | public abstract string ScriptConfigSourceName { get; } |
57 | 57 | ||
58 | /// <summary> | ||
59 | /// How many seconds between re-reading config-file. 0 = never. ScriptEngine will try to adjust to new config changes. | ||
60 | /// </summary> | ||
61 | public int ReReadConfigFileSeconds { | ||
62 | get { return (int)(ReReadConfigFilens / 10000); } | ||
63 | set { ReReadConfigFilens = value * 10000; } | ||
64 | } | ||
65 | public long ReReadConfigFilens = 0; | ||
66 | |||
58 | public ScriptManager GetScriptManager() | 67 | public ScriptManager GetScriptManager() |
59 | { | 68 | { |
60 | return _GetScriptManager(); | 69 | return _GetScriptManager(); |
@@ -93,6 +102,9 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase | |||
93 | m_AppDomainManager = new AppDomainManager(ScriptConfigSource.GetInt("ScriptsPerAppDomain", 1)); | 102 | m_AppDomainManager = new AppDomainManager(ScriptConfigSource.GetInt("ScriptsPerAppDomain", 1)); |
94 | m_LSLLongCmdHandler = new LSLLongCmdHandler(this); | 103 | m_LSLLongCmdHandler = new LSLLongCmdHandler(this); |
95 | 104 | ||
105 | ReReadConfigFileSeconds = ScriptConfigSource.GetInt("ReReadConfig", 0); | ||
106 | |||
107 | |||
96 | // Should we iterate the region for scripts that needs starting? | 108 | // Should we iterate the region for scripts that needs starting? |
97 | // Or can we assume we are loaded before anything else so we can use proper events? | 109 | // Or can we assume we are loaded before anything else so we can use proper events? |
98 | } | 110 | } |