diff options
author | lbsa71 | 2007-07-16 20:10:54 +0000 |
---|---|---|
committer | lbsa71 | 2007-07-16 20:10:54 +0000 |
commit | 85bdec5e0d30224f66851fe4183eb03e15828fbf (patch) | |
tree | 1215edd4ac26cdc37da2e43f975a04e71e1213cc /OpenSim/Region/ClientStack | |
parent | *Adding some more files (diff) | |
download | opensim-SC-85bdec5e0d30224f66851fe4183eb03e15828fbf.zip opensim-SC-85bdec5e0d30224f66851fe4183eb03e15828fbf.tar.gz opensim-SC-85bdec5e0d30224f66851fe4183eb03e15828fbf.tar.bz2 opensim-SC-85bdec5e0d30224f66851fe4183eb03e15828fbf.tar.xz |
* Massive restructuring of RegionApplicationBase, OpenSimMain and SimpleApp
Diffstat (limited to 'OpenSim/Region/ClientStack')
-rw-r--r-- | OpenSim/Region/ClientStack/RegionApplicationBase.cs | 40 |
1 files changed, 37 insertions, 3 deletions
diff --git a/OpenSim/Region/ClientStack/RegionApplicationBase.cs b/OpenSim/Region/ClientStack/RegionApplicationBase.cs index ec7eee4..043659b 100644 --- a/OpenSim/Region/ClientStack/RegionApplicationBase.cs +++ b/OpenSim/Region/ClientStack/RegionApplicationBase.cs | |||
@@ -37,16 +37,17 @@ using OpenSim.Framework.Types; | |||
37 | using OpenSim.Physics.Manager; | 37 | using OpenSim.Physics.Manager; |
38 | using OpenSim.Region.Caches; | 38 | using OpenSim.Region.Caches; |
39 | using OpenSim.Region.Environment; | 39 | using OpenSim.Region.Environment; |
40 | using libsecondlife; | ||
40 | 41 | ||
41 | namespace OpenSim.Region.ClientStack | 42 | namespace OpenSim.Region.ClientStack |
42 | { | 43 | { |
43 | public class RegionApplicationBase | 44 | public abstract class RegionApplicationBase |
44 | { | 45 | { |
45 | protected AssetCache m_assetCache; | 46 | protected AssetCache m_assetCache; |
46 | protected InventoryCache m_inventoryCache; | 47 | protected InventoryCache m_inventoryCache; |
47 | protected Dictionary<EndPoint, uint> m_clientCircuits = new Dictionary<EndPoint, uint>(); | 48 | protected Dictionary<EndPoint, uint> m_clientCircuits = new Dictionary<EndPoint, uint>(); |
48 | protected DateTime m_startuptime; | 49 | protected DateTime m_startuptime; |
49 | protected NetworkServersInfo m_serversData; | 50 | protected NetworkServersInfo m_networkServersInfo; |
50 | 51 | ||
51 | protected List<UDPServer> m_udpServer = new List<UDPServer>(); | 52 | protected List<UDPServer> m_udpServer = new List<UDPServer>(); |
52 | protected List<RegionInfo> m_regionData = new List<RegionInfo>(); | 53 | protected List<RegionInfo> m_regionData = new List<RegionInfo>(); |
@@ -58,7 +59,40 @@ namespace OpenSim.Region.ClientStack | |||
58 | 59 | ||
59 | public RegionApplicationBase( ) | 60 | public RegionApplicationBase( ) |
60 | { | 61 | { |
61 | 62 | m_startuptime = DateTime.Now; | |
62 | } | 63 | } |
64 | |||
65 | virtual public void StartUp() | ||
66 | { | ||
67 | ClientView.TerrainManager = new TerrainManager(new SecondLife()); | ||
68 | m_networkServersInfo = new NetworkServersInfo(); | ||
69 | RegionInfo m_regionInfo = new RegionInfo(); | ||
70 | |||
71 | Initialize(); | ||
72 | |||
73 | StartLog(); | ||
74 | |||
75 | } | ||
76 | |||
77 | protected abstract void Initialize(); | ||
78 | |||
79 | private void StartLog() | ||
80 | { | ||
81 | LogBase logBase = CreateLog(); | ||
82 | m_log = logBase; | ||
83 | MainLog.Instance = m_log; | ||
84 | } | ||
85 | |||
86 | protected abstract LogBase CreateLog(); | ||
87 | protected abstract PhysicsScene GetPhysicsScene( ); | ||
88 | |||
89 | protected PhysicsScene GetPhysicsScene(string engine) | ||
90 | { | ||
91 | PhysicsPluginManager physicsPluginManager; | ||
92 | physicsPluginManager = new PhysicsPluginManager(); | ||
93 | physicsPluginManager.LoadPlugins(); | ||
94 | return physicsPluginManager.GetPhysicsScene( engine ); | ||
95 | } | ||
96 | |||
63 | } | 97 | } |
64 | } | 98 | } |