From 29b8c84ceaaeca80bfa9c0bfc8c31e421e39ef71 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Fri, 2 May 2008 16:41:08 +0000 Subject: * Commit 2/3 - Please dont attempt to update to this revision until all 3 are in. --- OpenSim/Region/ClientStack/RegionApplicationBase.cs | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'OpenSim/Region/ClientStack/RegionApplicationBase.cs') diff --git a/OpenSim/Region/ClientStack/RegionApplicationBase.cs b/OpenSim/Region/ClientStack/RegionApplicationBase.cs index becf7ba..1102fb4 100644 --- a/OpenSim/Region/ClientStack/RegionApplicationBase.cs +++ b/OpenSim/Region/ClientStack/RegionApplicationBase.cs @@ -34,12 +34,11 @@ using OpenSim.Framework; using OpenSim.Framework.Communications; using OpenSim.Framework.Communications.Cache; using OpenSim.Framework.Servers; +using OpenSim.Region.ClientStack.LindenUDP; using OpenSim.Region.Environment; using OpenSim.Region.Environment.Scenes; using OpenSim.Region.Physics.Manager; -//using OpenSim.Framework.Console; - namespace OpenSim.Region.ClientStack { public abstract class RegionApplicationBase : BaseOpenSimServer @@ -75,7 +74,7 @@ namespace OpenSim.Region.ClientStack public virtual void StartUp() { - ClientView.TerrainManager = new TerrainManager(new SecondLife()); + LLClientView.TerrainManager = new TerrainManager(new SecondLife()); m_storageManager = CreateStorageManager(m_storageConnectionString); @@ -108,12 +107,12 @@ namespace OpenSim.Region.ClientStack return physicsPluginManager.GetPhysicsScene(engine, meshEngine); } - protected Scene SetupScene(RegionInfo regionInfo, out UDPServer udpServer, bool m_permissions) + protected Scene SetupScene(RegionInfo regionInfo, out LLUDPServer udpServer, bool m_permissions) { return SetupScene(regionInfo, 0, out udpServer, m_permissions); } - protected Scene SetupScene(RegionInfo regionInfo, int proxyOffset, out UDPServer udpServer, bool m_permissions) + protected Scene SetupScene(RegionInfo regionInfo, int proxyOffset, out LLUDPServer udpServer, bool m_permissions) { AgentCircuitManager circuitManager = new AgentCircuitManager(); IPAddress listenIP = regionInfo.InternalEndPoint.Address; @@ -121,7 +120,7 @@ namespace OpenSim.Region.ClientStack // listenIP = IPAddress.Parse("0.0.0.0"); uint port = (uint) regionInfo.InternalEndPoint.Port; - udpServer = new UDPServer(listenIP, ref port, proxyOffset, regionInfo.m_allow_alternate_ports, m_assetCache, circuitManager); + udpServer = new LLUDPServer(listenIP, ref port, proxyOffset, regionInfo.m_allow_alternate_ports, m_assetCache, circuitManager); regionInfo.InternalEndPoint.Port = (int)port; Scene scene = CreateScene(regionInfo, m_storageManager, circuitManager); @@ -131,8 +130,8 @@ namespace OpenSim.Region.ClientStack scene.LoadWorldMap(); //moved to opensimMain as these have to happen after modules are initialised - // scene.CreateTerrainTexture(true); - // scene.RegisterRegionWithGrid(); + // scene.CreateTerrainTexture(true); + // scene.RegisterRegionWithGrid(); scene.PhysicsScene = GetPhysicsScene(); scene.PhysicsScene.SetTerrain(scene.Heightmap.GetFloatsSerialised()); @@ -171,4 +170,4 @@ namespace OpenSim.Region.ClientStack protected abstract Scene CreateScene(RegionInfo regionInfo, StorageManager storageManager, AgentCircuitManager circuitManager); } -} +} \ No newline at end of file -- cgit v1.1