diff options
author | Robert Adams | 2015-09-08 04:54:16 -0700 |
---|---|---|
committer | Robert Adams | 2015-09-08 04:54:16 -0700 |
commit | e5367d822be9b05e74c859afe2d2956a3e95aa33 (patch) | |
tree | e904050a30715df587aa527d7f313755177726a7 /OpenSim/Region/Application/RegionApplicationBase.cs | |
parent | add lost admin_reset_land method (diff) | |
parent | Deleted access control spec from [LoginService] section of standalone config.... (diff) | |
download | opensim-SC-e5367d822be9b05e74c859afe2d2956a3e95aa33.zip opensim-SC-e5367d822be9b05e74c859afe2d2956a3e95aa33.tar.gz opensim-SC-e5367d822be9b05e74c859afe2d2956a3e95aa33.tar.bz2 opensim-SC-e5367d822be9b05e74c859afe2d2956a3e95aa33.tar.xz |
Merge of ubitworkvarnew with opensim/master as of 20150905.
This integrates the OpenSim refactoring to make physics, etc into modules.
AVN physics hasn't been moved to new location.
Does not compile yet.
Merge branch 'osmaster' into mbworknew1
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Application/RegionApplicationBase.cs (renamed from OpenSim/Region/ClientStack/RegionApplicationBase.cs) | 36 |
1 files changed, 2 insertions, 34 deletions
diff --git a/OpenSim/Region/ClientStack/RegionApplicationBase.cs b/OpenSim/Region/Application/RegionApplicationBase.cs index 332bff9..ba92fd6 100644 --- a/OpenSim/Region/ClientStack/RegionApplicationBase.cs +++ b/OpenSim/Region/Application/RegionApplicationBase.cs | |||
@@ -32,16 +32,15 @@ using log4net; | |||
32 | using Nini.Config; | 32 | using Nini.Config; |
33 | using OpenMetaverse; | 33 | using OpenMetaverse; |
34 | using OpenSim.Framework; | 34 | using OpenSim.Framework; |
35 | using OpenSim.Framework.Communications; | ||
36 | using OpenSim.Framework.Servers; | 35 | using OpenSim.Framework.Servers; |
37 | using OpenSim.Framework.Servers.HttpServer; | 36 | using OpenSim.Framework.Servers.HttpServer; |
38 | using OpenSim.Region.Framework; | 37 | using OpenSim.Region.Framework; |
39 | using OpenSim.Region.Framework.Interfaces; | 38 | using OpenSim.Region.Framework.Interfaces; |
40 | using OpenSim.Region.Framework.Scenes; | 39 | using OpenSim.Region.Framework.Scenes; |
41 | using OpenSim.Region.Physics.Manager; | 40 | using OpenSim.Region.PhysicsModules.SharedBase; |
42 | using OpenSim.Services.Interfaces; | 41 | using OpenSim.Services.Interfaces; |
43 | 42 | ||
44 | namespace OpenSim.Region.ClientStack | 43 | namespace OpenSim |
45 | { | 44 | { |
46 | public abstract class RegionApplicationBase : BaseOpenSimServer | 45 | public abstract class RegionApplicationBase : BaseOpenSimServer |
47 | { | 46 | { |
@@ -53,7 +52,6 @@ namespace OpenSim.Region.ClientStack | |||
53 | protected uint m_httpServerPort; | 52 | protected uint m_httpServerPort; |
54 | protected ISimulationDataService m_simulationDataService; | 53 | protected ISimulationDataService m_simulationDataService; |
55 | protected IEstateDataService m_estateDataService; | 54 | protected IEstateDataService m_estateDataService; |
56 | protected ClientStackManager m_clientStackManager; | ||
57 | 55 | ||
58 | public SceneManager SceneManager { get; protected set; } | 56 | public SceneManager SceneManager { get; protected set; } |
59 | public NetworkServersInfo NetServersInfo { get { return m_networkServersInfo; } } | 57 | public NetworkServersInfo NetServersInfo { get { return m_networkServersInfo; } } |
@@ -62,23 +60,11 @@ namespace OpenSim.Region.ClientStack | |||
62 | 60 | ||
63 | protected abstract void Initialize(); | 61 | protected abstract void Initialize(); |
64 | 62 | ||
65 | /// <summary> | ||
66 | /// Get a new physics scene. | ||
67 | /// </summary> | ||
68 | /// | ||
69 | /// <param name="osSceneIdentifier"> | ||
70 | /// The name of the OpenSim scene this physics scene is serving. This will be used in log messages. | ||
71 | /// </param> | ||
72 | /// <returns></returns> | ||
73 | protected abstract PhysicsScene GetPhysicsScene(string osSceneIdentifier, Vector3 regionExtent); | ||
74 | |||
75 | protected abstract ClientStackManager CreateClientStackManager(); | ||
76 | protected abstract Scene CreateScene(RegionInfo regionInfo, ISimulationDataService simDataService, IEstateDataService estateDataService, AgentCircuitManager circuitManager); | 63 | protected abstract Scene CreateScene(RegionInfo regionInfo, ISimulationDataService simDataService, IEstateDataService estateDataService, AgentCircuitManager circuitManager); |
77 | 64 | ||
78 | protected override void StartupSpecific() | 65 | protected override void StartupSpecific() |
79 | { | 66 | { |
80 | SceneManager = SceneManager.Instance; | 67 | SceneManager = SceneManager.Instance; |
81 | m_clientStackManager = CreateClientStackManager(); | ||
82 | 68 | ||
83 | Initialize(); | 69 | Initialize(); |
84 | 70 | ||
@@ -125,23 +111,5 @@ namespace OpenSim.Region.ClientStack | |||
125 | base.StartupSpecific(); | 111 | base.StartupSpecific(); |
126 | } | 112 | } |
127 | 113 | ||
128 | /// <summary> | ||
129 | /// Get a new physics scene. | ||
130 | /// </summary> | ||
131 | /// <param name="engine">The name of the physics engine to use</param> | ||
132 | /// <param name="meshEngine">The name of the mesh engine to use</param> | ||
133 | /// <param name="config">The configuration data to pass to the physics and mesh engines</param> | ||
134 | /// <param name="osSceneIdentifier"> | ||
135 | /// The name of the OpenSim scene this physics scene is serving. This will be used in log messages. | ||
136 | /// </param> | ||
137 | /// <returns></returns> | ||
138 | protected PhysicsScene GetPhysicsScene( | ||
139 | string engine, string meshEngine, IConfigSource config, string osSceneIdentifier, Vector3 regionExtent) | ||
140 | { | ||
141 | PhysicsPluginManager physicsPluginManager; | ||
142 | physicsPluginManager = new PhysicsPluginManager(); | ||
143 | physicsPluginManager.LoadPluginsFromAssemblies("Physics"); | ||
144 | return physicsPluginManager.GetPhysicsScene(engine, meshEngine, config, osSceneIdentifier, regionExtent); | ||
145 | } | ||
146 | } | 114 | } |
147 | } | 115 | } |