diff options
Switched in NameSpaceChanges
Diffstat (limited to 'OpenSim/Region/ClientStack/RegionApplicationBase.cs')
-rw-r--r-- | OpenSim/Region/ClientStack/RegionApplicationBase.cs | 128 |
1 files changed, 128 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/RegionApplicationBase.cs b/OpenSim/Region/ClientStack/RegionApplicationBase.cs new file mode 100644 index 0000000..94db8ee --- /dev/null +++ b/OpenSim/Region/ClientStack/RegionApplicationBase.cs | |||
@@ -0,0 +1,128 @@ | |||
1 | /* | ||
2 | * Copyright (c) Contributors, http://www.openmetaverse.org/ | ||
3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. | ||
4 | * | ||
5 | * Redistribution and use in source and binary forms, with or without | ||
6 | * modification, are permitted provided that the following conditions are met: | ||
7 | * * Redistributions of source code must retain the above copyright | ||
8 | * notice, this list of conditions and the following disclaimer. | ||
9 | * * Redistributions in binary form must reproduce the above copyright | ||
10 | * notice, this list of conditions and the following disclaimer in the | ||
11 | * documentation and/or other materials provided with the distribution. | ||
12 | * * Neither the name of the OpenSim Project nor the | ||
13 | * names of its contributors may be used to endorse or promote products | ||
14 | * derived from this software without specific prior written permission. | ||
15 | * | ||
16 | * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS AND ANY | ||
17 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
18 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
19 | * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY | ||
20 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
21 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
22 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | ||
23 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
26 | * | ||
27 | */ | ||
28 | using System; | ||
29 | using System.Text; | ||
30 | using System.IO; | ||
31 | using System.Threading; | ||
32 | using System.Net; | ||
33 | using System.Net.Sockets; | ||
34 | using System.Timers; | ||
35 | using System.Reflection; | ||
36 | using System.Collections; | ||
37 | using System.Collections.Generic; | ||
38 | using libsecondlife; | ||
39 | using libsecondlife.Packets; | ||
40 | using OpenSim.Region.Terrain; | ||
41 | using OpenSim.Framework.Interfaces; | ||
42 | using OpenSim.Framework.Types; | ||
43 | using OpenSim.Framework; | ||
44 | using OpenSim.Assets; | ||
45 | using OpenSim.Region.Caches; | ||
46 | using OpenSim.Framework.Console; | ||
47 | using OpenSim.Physics.Manager; | ||
48 | using Nwc.XmlRpc; | ||
49 | using OpenSim.Framework.Servers; | ||
50 | |||
51 | namespace OpenSim.Region.ClientStack | ||
52 | { | ||
53 | public class RegionApplicationBase | ||
54 | { | ||
55 | protected IGenericConfig localConfig; | ||
56 | protected PhysicsManager physManager; | ||
57 | protected AssetCache AssetCache; | ||
58 | protected InventoryCache InventoryCache; | ||
59 | protected Dictionary<EndPoint, uint> clientCircuits = new Dictionary<EndPoint, uint>(); | ||
60 | protected DateTime startuptime; | ||
61 | protected NetworkServersInfo serversData; | ||
62 | |||
63 | public string m_physicsEngine; | ||
64 | public bool m_sandbox = false; | ||
65 | public bool m_loginserver; | ||
66 | public bool user_accounts = false; | ||
67 | public bool gridLocalAsset = false; | ||
68 | protected bool configFileSetup = false; | ||
69 | public string m_config; | ||
70 | |||
71 | protected List<UDPServer> m_udpServer = new List<UDPServer>(); | ||
72 | protected List<RegionInfo> regionData = new List<RegionInfo>(); | ||
73 | protected List<IWorld> m_localWorld = new List<IWorld>(); | ||
74 | protected BaseHttpServer httpServer; | ||
75 | protected List<AuthenticateSessionsBase> AuthenticateSessionsHandler = new List<AuthenticateSessionsBase>(); | ||
76 | |||
77 | protected LogBase m_log; | ||
78 | |||
79 | public RegionApplicationBase() | ||
80 | { | ||
81 | |||
82 | } | ||
83 | |||
84 | public RegionApplicationBase(bool sandBoxMode, bool startLoginServer, string physicsEngine, bool useConfigFile, bool silent, string configFile) | ||
85 | { | ||
86 | this.configFileSetup = useConfigFile; | ||
87 | m_sandbox = sandBoxMode; | ||
88 | m_loginserver = startLoginServer; | ||
89 | m_physicsEngine = physicsEngine; | ||
90 | m_config = configFile; | ||
91 | } | ||
92 | |||
93 | /*protected World m_localWorld; | ||
94 | public World LocalWorld | ||
95 | { | ||
96 | get { return m_localWorld; } | ||
97 | }*/ | ||
98 | |||
99 | /// <summary> | ||
100 | /// Performs initialisation of the world, such as loading configuration from disk. | ||
101 | /// </summary> | ||
102 | public virtual void StartUp() | ||
103 | { | ||
104 | } | ||
105 | |||
106 | protected virtual void SetupLocalGridServers() | ||
107 | { | ||
108 | } | ||
109 | |||
110 | protected virtual void SetupRemoteGridServers() | ||
111 | { | ||
112 | |||
113 | } | ||
114 | |||
115 | protected virtual void SetupWorld() | ||
116 | { | ||
117 | } | ||
118 | |||
119 | protected virtual void SetupHttpListener() | ||
120 | { | ||
121 | } | ||
122 | |||
123 | protected virtual void ConnectToRemoteGridServer() | ||
124 | { | ||
125 | |||
126 | } | ||
127 | } | ||
128 | } | ||