diff options
author | Tedd Hansen | 2007-09-24 12:49:46 +0000 |
---|---|---|
committer | Tedd Hansen | 2007-09-24 12:49:46 +0000 |
commit | 323234f82a78b8a863c12e0c6d0641ec156d523b (patch) | |
tree | 454f57905ec64230f8f553430ada4a83ac95e44f /OpenSim/Grid/ScriptServer/ScriptServerMain.cs | |
parent | * Long days journey towards night (diff) | |
download | opensim-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.cs | 49 |
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 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Text; | ||
4 | using System.IO; | ||
5 | using OpenSim.Framework.Console; | ||
6 | using OpenSim.Framework.Utilities; | ||
7 | |||
8 | namespace 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 | } | ||