aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ExtensionsScriptModule/ScriptInfo.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ExtensionsScriptModule/ScriptInfo.cs')
-rw-r--r--OpenSim/Region/ExtensionsScriptModule/ScriptInfo.cs11
1 files changed, 7 insertions, 4 deletions
diff --git a/OpenSim/Region/ExtensionsScriptModule/ScriptInfo.cs b/OpenSim/Region/ExtensionsScriptModule/ScriptInfo.cs
index af54a4e..e90bfc1 100644
--- a/OpenSim/Region/ExtensionsScriptModule/ScriptInfo.cs
+++ b/OpenSim/Region/ExtensionsScriptModule/ScriptInfo.cs
@@ -36,23 +36,26 @@ namespace OpenSim.Region.ExtensionsScriptModule
36 /// </summary> 36 /// </summary>
37 public class ScriptInfo 37 public class ScriptInfo
38 { 38 {
39 private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
40
39 // Reference to world.eventsManager provided for convenience 41 // Reference to world.eventsManager provided for convenience
40 public EventManager events; 42 public EventManager events;
41 43
42 // The main world 44 // The main world
43 public Scene world; 45 public Scene world;
44 46
45 // The console
46 public LogBase logger;
47
48 // API Access 47 // API Access
49 public ScriptAPI api; 48 public ScriptAPI api;
50 49
50 public log4net.ILog Log
51 {
52 get { return m_log; }
53 }
54
51 public ScriptInfo(Scene scene) 55 public ScriptInfo(Scene scene)
52 { 56 {
53 world = scene; 57 world = scene;
54 events = world.EventManager; 58 events = world.EventManager;
55 logger = MainLog.Instance;
56 api = new ScriptAPI(world, LLUUID.Zero); 59 api = new ScriptAPI(world, LLUUID.Zero);
57 } 60 }
58 61