aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Grid/ScriptServer/ScriptServerMain.cs
diff options
context:
space:
mode:
authorTedd Hansen2007-09-24 12:49:46 +0000
committerTedd Hansen2007-09-24 12:49:46 +0000
commit323234f82a78b8a863c12e0c6d0641ec156d523b (patch)
tree454f57905ec64230f8f553430ada4a83ac95e44f /OpenSim/Grid/ScriptServer/ScriptServerMain.cs
parent* Long days journey towards night (diff)
downloadopensim-SC_OLD-323234f82a78b8a863c12e0c6d0641ec156d523b.zip
opensim-SC_OLD-323234f82a78b8a863c12e0c6d0641ec156d523b.tar.gz
opensim-SC_OLD-323234f82a78b8a863c12e0c6d0641ec156d523b.tar.bz2
opensim-SC_OLD-323234f82a78b8a863c12e0c6d0641ec156d523b.tar.xz
Reorganized some files
Diffstat (limited to 'OpenSim/Grid/ScriptServer/ScriptServerMain.cs')
-rw-r--r--OpenSim/Grid/ScriptServer/ScriptServerMain.cs49
1 files changed, 49 insertions, 0 deletions
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 @@
1using System;
2using System.Collections.Generic;
3using System.Text;
4using System.IO;
5using OpenSim.Framework.Console;
6using OpenSim.Framework.Utilities;
7
8namespace OpenSim.Grid.ScriptServer
9{
10 class ScriptServerMain : conscmd_callback
11 {
12 private readonly string m_logFilename = ("region-console.log");
13 public RegionScriptDaemon RegionScriptDaemon; // Listen for incoming from region
14 public RegionsManager RegionManager; // Handle regions
15 public ScriptEngineLoader ScriptEngineLoader; // Loads scriptengines
16 private LogBase m_log;
17
18 public ScriptServerMain()
19 {
20 m_log = CreateLog();
21
22 RegionScriptDaemon = new RegionScriptDaemon(this);
23 RegionManager = new RegionsManager(this);
24 ScriptEngineLoader = new ScriptEngineLoader(m_log);
25 }
26
27 ~ScriptServerMain()
28 {
29 }
30
31 protected LogBase CreateLog()
32 {
33 if (!Directory.Exists(Util.logDir()))
34 {
35 Directory.CreateDirectory(Util.logDir());
36 }
37
38 return new LogBase((Path.Combine(Util.logDir(), m_logFilename)), "Region", this, false);
39 }
40
41 public void RunCmd(string command, string[] cmdparams)
42 {
43 }
44 public void Show(string ShowWhat)
45 {
46 }
47
48 }
49}