diff options
implement LSL "print()" API function
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 72ee495..e3e16bd 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -81,7 +81,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
81 | /// </summary> | 81 | /// </summary> |
82 | public class LSL_Api : MarshalByRefObject, ILSL_Api, IScriptApi | 82 | public class LSL_Api : MarshalByRefObject, ILSL_Api, IScriptApi |
83 | { | 83 | { |
84 | //private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 84 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
85 | protected IScriptEngine m_ScriptEngine; | 85 | protected IScriptEngine m_ScriptEngine; |
86 | protected SceneObjectPart m_host; | 86 | protected SceneObjectPart m_host; |
87 | protected uint m_localID; | 87 | protected uint m_localID; |
@@ -10278,6 +10278,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
10278 | 10278 | ||
10279 | return GetLinkPrimitiveParams(obj, rules); | 10279 | return GetLinkPrimitiveParams(obj, rules); |
10280 | } | 10280 | } |
10281 | |||
10282 | public void print(string str) | ||
10283 | { | ||
10284 | // yes, this is a real LSL function. See: http://wiki.secondlife.com/wiki/Print | ||
10285 | m_log.Info("LSL print():" + str); | ||
10286 | } | ||
10281 | } | 10287 | } |
10282 | 10288 | ||
10283 | public class NotecardCache | 10289 | public class NotecardCache |