aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim.RegionServer/OpenSimApplicationBase.cs
diff options
context:
space:
mode:
authorMW2007-05-16 18:59:51 +0000
committerMW2007-05-16 18:59:51 +0000
commit2a6d69b2b8ab84eec58bf8d0fb786ac6fdfba73f (patch)
tree638f3d03f5ba5184dca03b8cf60211e90976eee3 /OpenSim.RegionServer/OpenSimApplicationBase.cs
parentAdded OpenSimApplication as a base class to OpenSimMain (diff)
downloadopensim-SC_OLD-2a6d69b2b8ab84eec58bf8d0fb786ac6fdfba73f.zip
opensim-SC_OLD-2a6d69b2b8ab84eec58bf8d0fb786ac6fdfba73f.tar.gz
opensim-SC_OLD-2a6d69b2b8ab84eec58bf8d0fb786ac6fdfba73f.tar.bz2
opensim-SC_OLD-2a6d69b2b8ab84eec58bf8d0fb786ac6fdfba73f.tar.xz
Moved the OpenSimMain class into the OpenSim.exe project
Diffstat (limited to 'OpenSim.RegionServer/OpenSimApplicationBase.cs')
-rw-r--r--OpenSim.RegionServer/OpenSimApplicationBase.cs81
1 files changed, 81 insertions, 0 deletions
diff --git a/OpenSim.RegionServer/OpenSimApplicationBase.cs b/OpenSim.RegionServer/OpenSimApplicationBase.cs
new file mode 100644
index 0000000..0c5a5cf
--- /dev/null
+++ b/OpenSim.RegionServer/OpenSimApplicationBase.cs
@@ -0,0 +1,81 @@
1using System;
2using System.Text;
3using System.IO;
4using System.Threading;
5using System.Net;
6using System.Net.Sockets;
7using System.Timers;
8using System.Reflection;
9using System.Collections;
10using System.Collections.Generic;
11using libsecondlife;
12using libsecondlife.Packets;
13using OpenSim.world;
14using OpenSim.Terrain;
15using OpenSim.Framework.Interfaces;
16using OpenSim.Framework.Types;
17using OpenSim.UserServer;
18using OpenSim.Assets;
19using OpenSim.CAPS;
20using OpenSim.Framework.Console;
21using OpenSim.Physics.Manager;
22using Nwc.XmlRpc;
23using OpenSim.Servers;
24using OpenSim.GenericConfig;
25
26namespace OpenSim
27{
28 public class OpenSimApplicationBase
29 {
30 protected IGenericConfig localConfig;
31 protected PhysicsManager physManager;
32 protected Grid GridServers;
33 protected AssetCache AssetCache;
34 protected InventoryCache InventoryCache;
35 protected Dictionary<EndPoint, uint> clientCircuits = new Dictionary<EndPoint, uint>();
36 protected DateTime startuptime;
37 protected RegionInfo regionData;
38
39 protected System.Timers.Timer m_heartbeatTimer = new System.Timers.Timer();
40 public string m_physicsEngine;
41 public bool m_sandbox = false;
42 public bool m_loginserver;
43 public bool user_accounts = false;
44 public bool gridLocalAsset = false;
45 protected bool configFileSetup = false;
46 public string m_config;
47
48 protected UDPServer m_udpServer;
49 protected BaseHttpServer httpServer;
50 protected AuthenticateSessionsBase AuthenticateSessionsHandler;
51
52 protected ConsoleBase m_console;
53
54 public OpenSimApplicationBase()
55 {
56
57 }
58
59 public OpenSimApplicationBase(bool sandBoxMode, bool startLoginServer, string physicsEngine, bool useConfigFile, bool silent, string configFile)
60 {
61 this.configFileSetup = useConfigFile;
62 m_sandbox = sandBoxMode;
63 m_loginserver = startLoginServer;
64 m_physicsEngine = physicsEngine;
65 m_config = configFile;
66 }
67
68 protected World m_localWorld;
69 public World LocalWorld
70 {
71 get { return m_localWorld; }
72 }
73
74 /// <summary>
75 /// Performs initialisation of the world, such as loading configuration from disk.
76 /// </summary>
77 public virtual void StartUp()
78 {
79 }
80 }
81}