From f35f5ddaf753d88d2a5ed7c334a8cc1a4ad23664 Mon Sep 17 00:00:00 2001 From: lbsa71 Date: Mon, 16 Jul 2007 21:53:39 +0000 Subject: * And yet more restructuring of startup sequence... --- OpenSim/Region/ClientStack/RegionApplicationBase.cs | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'OpenSim/Region/ClientStack') diff --git a/OpenSim/Region/ClientStack/RegionApplicationBase.cs b/OpenSim/Region/ClientStack/RegionApplicationBase.cs index 043659b..8467082 100644 --- a/OpenSim/Region/ClientStack/RegionApplicationBase.cs +++ b/OpenSim/Region/ClientStack/RegionApplicationBase.cs @@ -38,6 +38,7 @@ using OpenSim.Physics.Manager; using OpenSim.Region.Caches; using OpenSim.Region.Environment; using libsecondlife; +using OpenSim.Region.Environment.Scenes; namespace OpenSim.Region.ClientStack { @@ -49,10 +50,11 @@ namespace OpenSim.Region.ClientStack protected DateTime m_startuptime; protected NetworkServersInfo m_networkServersInfo; - protected List m_udpServer = new List(); + protected List m_udpServers = new List(); protected List m_regionData = new List(); protected List m_localWorld = new List(); protected BaseHttpServer m_httpServer; + protected int m_httpServerPort; protected List AuthenticateSessionsHandler = new List(); protected LogBase m_log; @@ -72,20 +74,26 @@ namespace OpenSim.Region.ClientStack StartLog(); + ScenePresence.LoadTextureFile("avatar-texture.dat"); + + m_httpServer = new BaseHttpServer( m_httpServerPort ); + + m_log.Verbose("Starting HTTP server"); + m_httpServer.Start(); } protected abstract void Initialize(); private void StartLog() { - LogBase logBase = CreateLog(); - m_log = logBase; + m_log = CreateLog(); MainLog.Instance = m_log; } protected abstract LogBase CreateLog(); protected abstract PhysicsScene GetPhysicsScene( ); - + protected abstract StorageManager GetStoreManager(RegionInfo regionInfo); + protected PhysicsScene GetPhysicsScene(string engine) { PhysicsPluginManager physicsPluginManager; -- cgit v1.1