Documentation of IScriptModuleComms.RegisterConstant and IScriptModuleComms.LookupModConstant

Signed-off-by: Melanie <melanie@t-data.com>
connector_plugin
SignpostMarv 2012-09-14 13:20:14 +01:00 committed by Melanie
parent f9721573d9
commit 0e5f5538bc
1 changed files with 18 additions and 1 deletions

View File

@ -104,7 +104,18 @@ namespace OpenSim.Region.Framework.Interfaces
/// <param name="key"></param> /// <param name="key"></param>
void DispatchReply(UUID scriptId, int code, string text, string key); void DispatchReply(UUID scriptId, int code, string text, string key);
/// For constants /// <summary>
/// Operation to for a region module to register a constant to be used
/// by the script engine
/// </summary>
/// <param name="cname">
/// The name of the constant. LSL convention is for constant names to
/// be uppercase.
/// </param>
/// <param name="value">
/// The value of the constant. Should be of a type that can be
/// converted to one of <see cref="OpenSim.Region.ScriptEngine.Shared.LSL_Types"/>
/// </param>
void RegisterConstant(string cname, object value); void RegisterConstant(string cname, object value);
/// <summary> /// <summary>
@ -113,6 +124,12 @@ namespace OpenSim.Region.Framework.Interfaces
/// </summary> /// </summary>
/// <param name="target"></param> /// <param name="target"></param>
void RegisterConstants(IRegionModuleBase target); void RegisterConstants(IRegionModuleBase target);
/// <summary>
/// Operation to check for a registered constant
/// </summary>
/// <param name="cname">Name of constant</param>
/// <returns>Value of constant or null if none found.</returns>
object LookupModConstant(string cname); object LookupModConstant(string cname);
// For use ONLY by the script API // For use ONLY by the script API