aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs
diff options
context:
space:
mode:
authorTedd Hansen2007-08-14 15:59:36 +0000
committerTedd Hansen2007-08-14 15:59:36 +0000
commitafaa12a9e2fd24c03c0f46716e9758cc591703c2 (patch)
treef6f6977314ab65d88822b592378806142090e99d /OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs
parentMore inventory work, should be able to now create new inventory folders and t... (diff)
downloadopensim-SC_OLD-afaa12a9e2fd24c03c0f46716e9758cc591703c2.zip
opensim-SC_OLD-afaa12a9e2fd24c03c0f46716e9758cc591703c2.tar.gz
opensim-SC_OLD-afaa12a9e2fd24c03c0f46716e9758cc591703c2.tar.bz2
opensim-SC_OLD-afaa12a9e2fd24c03c0f46716e9758cc591703c2.tar.xz
ScriptEngine: Some error handling, logs to logger
Diffstat (limited to 'OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs12
1 files changed, 8 insertions, 4 deletions
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs
index 4a09cf3..bcfc06d 100644
--- a/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs
+++ b/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs
@@ -42,16 +42,20 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
42 internal EventManager myEventManager; // Handles and queues incoming events from OpenSim 42 internal EventManager myEventManager; // Handles and queues incoming events from OpenSim
43 internal EventQueueManager myEventQueueManager; // Executes events 43 internal EventQueueManager myEventQueueManager; // Executes events
44 internal ScriptManager myScriptManager; // Load, unload and execute scripts 44 internal ScriptManager myScriptManager; // Load, unload and execute scripts
45 internal OpenSim.Framework.Console.LogBase m_logger;
45 46
46 public ScriptEngine() 47 public ScriptEngine()
47 { 48 {
48 Common.SendToDebug("ScriptEngine Object Initialized"); 49 //Common.SendToDebug("ScriptEngine Object Initialized");
50 Common.mySE = this;
49 } 51 }
50 52
51 public void InitializeEngine(OpenSim.Region.Environment.Scenes.Scene Sceneworld) 53 public void InitializeEngine(OpenSim.Region.Environment.Scenes.Scene Sceneworld, OpenSim.Framework.Console.LogBase logger)
52 { 54 {
53 World = Sceneworld; 55 World = Sceneworld;
54 Common.SendToDebug("ScriptEngine InitializeEngine()"); 56 m_logger = logger;
57
58 m_logger.Status("ScriptEngine", "InitializeEngine");
55 59
56 // Create all objects we'll be using 60 // Create all objects we'll be using
57 myEventQueueManager = new EventQueueManager(this); 61 myEventQueueManager = new EventQueueManager(this);
@@ -71,7 +75,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
71 [Obsolete("!!!FOR DEBUGGING ONLY!!!")] 75 [Obsolete("!!!FOR DEBUGGING ONLY!!!")]
72 public void StartScript(string ScriptID, string ObjectID) 76 public void StartScript(string ScriptID, string ObjectID)
73 { 77 {
74 Common.SendToDebug("ScriptEngine DEBUG: StartScript: " + ScriptID); 78 m_logger.Status("ScriptEngine", "DEBUG: StartScript: " + ScriptID);
75 myScriptManager.StartScript(ScriptID, ObjectID); 79 myScriptManager.StartScript(ScriptID, ObjectID);
76 } 80 }
77 } 81 }