diff options
author | MW | 2007-05-16 18:59:51 +0000 |
---|---|---|
committer | MW | 2007-05-16 18:59:51 +0000 |
commit | 2a6d69b2b8ab84eec58bf8d0fb786ac6fdfba73f (patch) | |
tree | 638f3d03f5ba5184dca03b8cf60211e90976eee3 /OpenSim.RegionServer/OpenSimApplicationBase.cs | |
parent | Added OpenSimApplication as a base class to OpenSimMain (diff) | |
download | opensim-SC-2a6d69b2b8ab84eec58bf8d0fb786ac6fdfba73f.zip opensim-SC-2a6d69b2b8ab84eec58bf8d0fb786ac6fdfba73f.tar.gz opensim-SC-2a6d69b2b8ab84eec58bf8d0fb786ac6fdfba73f.tar.bz2 opensim-SC-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.cs | 81 |
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 @@ | |||
1 | using System; | ||
2 | using System.Text; | ||
3 | using System.IO; | ||
4 | using System.Threading; | ||
5 | using System.Net; | ||
6 | using System.Net.Sockets; | ||
7 | using System.Timers; | ||
8 | using System.Reflection; | ||
9 | using System.Collections; | ||
10 | using System.Collections.Generic; | ||
11 | using libsecondlife; | ||
12 | using libsecondlife.Packets; | ||
13 | using OpenSim.world; | ||
14 | using OpenSim.Terrain; | ||
15 | using OpenSim.Framework.Interfaces; | ||
16 | using OpenSim.Framework.Types; | ||
17 | using OpenSim.UserServer; | ||
18 | using OpenSim.Assets; | ||
19 | using OpenSim.CAPS; | ||
20 | using OpenSim.Framework.Console; | ||
21 | using OpenSim.Physics.Manager; | ||
22 | using Nwc.XmlRpc; | ||
23 | using OpenSim.Servers; | ||
24 | using OpenSim.GenericConfig; | ||
25 | |||
26 | namespace 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 | } | ||