diff options
author | Melanie | 2012-11-04 22:01:34 +0100 |
---|---|---|
committer | Melanie | 2012-11-04 22:39:15 +0000 |
commit | f391d028de3aff0cc49d024d855555253eb8c02c (patch) | |
tree | 1124ccaa60a3df9e69cc0234923e074da77d48f3 /OpenSim/Region/CoreModules/Scripting/ScriptModuleComms | |
parent | BulletSim: update the DLLs and SOs (diff) | |
download | opensim-SC_OLD-f391d028de3aff0cc49d024d855555253eb8c02c.zip opensim-SC_OLD-f391d028de3aff0cc49d024d855555253eb8c02c.tar.gz opensim-SC_OLD-f391d028de3aff0cc49d024d855555253eb8c02c.tar.bz2 opensim-SC_OLD-f391d028de3aff0cc49d024d855555253eb8c02c.tar.xz |
Add a method to query all registered script constants to allow non-XEngine
script engines to use them.
Diffstat (limited to 'OpenSim/Region/CoreModules/Scripting/ScriptModuleComms')
-rw-r--r-- | OpenSim/Region/CoreModules/Scripting/ScriptModuleComms/ScriptModuleCommsModule.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/Scripting/ScriptModuleComms/ScriptModuleCommsModule.cs b/OpenSim/Region/CoreModules/Scripting/ScriptModuleComms/ScriptModuleCommsModule.cs index 98396ff..dc54c3f 100644 --- a/OpenSim/Region/CoreModules/Scripting/ScriptModuleComms/ScriptModuleCommsModule.cs +++ b/OpenSim/Region/CoreModules/Scripting/ScriptModuleComms/ScriptModuleCommsModule.cs | |||
@@ -361,6 +361,22 @@ namespace OpenSim.Region.OptionalModules.Scripting.ScriptModuleComms | |||
361 | return null; | 361 | return null; |
362 | } | 362 | } |
363 | 363 | ||
364 | /// <summary> | ||
365 | /// Get all registered constants | ||
366 | /// </summary> | ||
367 | public Dictionary<string, object> GetConstants() | ||
368 | { | ||
369 | Dictionary<string, object> ret = new Dictionary<string, object>(); | ||
370 | |||
371 | lock (m_constants) | ||
372 | { | ||
373 | foreach (KeyValuePair<string, object> kvp in m_constants) | ||
374 | ret[kvp.Key] = kvp.Value; | ||
375 | } | ||
376 | |||
377 | return ret; | ||
378 | } | ||
379 | |||
364 | #endregion | 380 | #endregion |
365 | 381 | ||
366 | } | 382 | } |