diff options
author | dahlia | 2011-03-31 21:14:53 -0700 |
---|---|---|
committer | dahlia | 2011-03-31 21:14:53 -0700 |
commit | 8c8a0a182e28f3486ce89fc0570b56fe53f69934 (patch) | |
tree | ae022eba1a67e648eeef88dd9d3fef7f90ef0f8b /OpenSim/Region/ScriptEngine/Shared/Api/Implementation | |
parent | When asked to join region to existing estate, make first estate name the defa... (diff) | |
download | opensim-SC-8c8a0a182e28f3486ce89fc0570b56fe53f69934.zip opensim-SC-8c8a0a182e28f3486ce89fc0570b56fe53f69934.tar.gz opensim-SC-8c8a0a182e28f3486ce89fc0570b56fe53f69934.tar.bz2 opensim-SC-8c8a0a182e28f3486ce89fc0570b56fe53f69934.tar.xz |
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 |