aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules
diff options
context:
space:
mode:
authorMelanie2012-11-04 22:01:34 +0100
committerMelanie2012-11-04 22:01:34 +0100
commit7e91a787fb89e782382bf98c026d8f22d25691a1 (patch)
treeed0cc569e24d173a3f650b48c8b6b841be0e3daf /OpenSim/Region/OptionalModules
parentPrevent a null client from crashing windlight. (diff)
downloadopensim-SC-7e91a787fb89e782382bf98c026d8f22d25691a1.zip
opensim-SC-7e91a787fb89e782382bf98c026d8f22d25691a1.tar.gz
opensim-SC-7e91a787fb89e782382bf98c026d8f22d25691a1.tar.bz2
opensim-SC-7e91a787fb89e782382bf98c026d8f22d25691a1.tar.xz
Add a method to query all registered script constants to allow non-XEngine
script engines to use them.
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/OptionalModules/Scripting/ScriptModuleComms/ScriptModuleCommsModule.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/OpenSim/Region/OptionalModules/Scripting/ScriptModuleComms/ScriptModuleCommsModule.cs b/OpenSim/Region/OptionalModules/Scripting/ScriptModuleComms/ScriptModuleCommsModule.cs
index 705a847..c5c96a9 100644
--- a/OpenSim/Region/OptionalModules/Scripting/ScriptModuleComms/ScriptModuleCommsModule.cs
+++ b/OpenSim/Region/OptionalModules/Scripting/ScriptModuleComms/ScriptModuleCommsModule.cs
@@ -302,6 +302,22 @@ namespace OpenSim.Region.OptionalModules.Scripting.ScriptModuleComms
302 return null; 302 return null;
303 } 303 }
304 304
305 /// <summary>
306 /// Get all registered constants
307 /// </summary>
308 public Dictionary<string, object> GetConstants()
309 {
310 Dictionary<string, object> ret = new Dictionary<string, object>();
311
312 lock (m_constants)
313 {
314 foreach (KeyValuePair<string, object> kvp in m_constants)
315 ret[kvp.Key] = kvp.Value;
316 }
317
318 return ret;
319 }
320
305#endregion 321#endregion
306 322
307 } 323 }