From 323234f82a78b8a863c12e0c6d0641ec156d523b Mon Sep 17 00:00:00 2001 From: Tedd Hansen Date: Mon, 24 Sep 2007 12:49:46 +0000 Subject: Reorganized some files --- OpenSim/Grid/ScriptServer/ScriptServerMain.cs | 49 +++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 OpenSim/Grid/ScriptServer/ScriptServerMain.cs (limited to 'OpenSim/Grid/ScriptServer/ScriptServerMain.cs') diff --git a/OpenSim/Grid/ScriptServer/ScriptServerMain.cs b/OpenSim/Grid/ScriptServer/ScriptServerMain.cs new file mode 100644 index 0000000..4fce3d6 --- /dev/null +++ b/OpenSim/Grid/ScriptServer/ScriptServerMain.cs @@ -0,0 +1,49 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.IO; +using OpenSim.Framework.Console; +using OpenSim.Framework.Utilities; + +namespace OpenSim.Grid.ScriptServer +{ + class ScriptServerMain : conscmd_callback + { + private readonly string m_logFilename = ("region-console.log"); + public RegionScriptDaemon RegionScriptDaemon; // Listen for incoming from region + public RegionsManager RegionManager; // Handle regions + public ScriptEngineLoader ScriptEngineLoader; // Loads scriptengines + private LogBase m_log; + + public ScriptServerMain() + { + m_log = CreateLog(); + + RegionScriptDaemon = new RegionScriptDaemon(this); + RegionManager = new RegionsManager(this); + ScriptEngineLoader = new ScriptEngineLoader(m_log); + } + + ~ScriptServerMain() + { + } + + protected LogBase CreateLog() + { + if (!Directory.Exists(Util.logDir())) + { + Directory.CreateDirectory(Util.logDir()); + } + + return new LogBase((Path.Combine(Util.logDir(), m_logFilename)), "Region", this, false); + } + + public void RunCmd(string command, string[] cmdparams) + { + } + public void Show(string ShowWhat) + { + } + + } +} -- cgit v1.1