implement LSL "print()" API function

This commit is contained in:
dahlia
2011-03-31 21:14:53 -07:00
parent 8f4bf43534
commit 8c8a0a182e
3 changed files with 13 additions and 1 deletions

View File

@@ -81,7 +81,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
/// </summary>
public class LSL_Api : MarshalByRefObject, ILSL_Api, IScriptApi
{
//private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
protected IScriptEngine m_ScriptEngine;
protected SceneObjectPart m_host;
protected uint m_localID;
@@ -10278,6 +10278,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
return GetLinkPrimitiveParams(obj, rules);
}
public void print(string str)
{
// yes, this is a real LSL function. See: http://wiki.secondlife.com/wiki/Print
m_log.Info("LSL print():" + str);
}
}
public class NotecardCache