Add a method to query all registered script constants to allow non-XEngine
script engines to use them.
This commit is contained in:
@@ -361,6 +361,22 @@ namespace OpenSim.Region.OptionalModules.Scripting.ScriptModuleComms
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Get all registered constants
|
||||
/// </summary>
|
||||
public Dictionary<string, object> GetConstants()
|
||||
{
|
||||
Dictionary<string, object> ret = new Dictionary<string, object>();
|
||||
|
||||
lock (m_constants)
|
||||
{
|
||||
foreach (KeyValuePair<string, object> kvp in m_constants)
|
||||
ret[kvp.Key] = kvp.Value;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user