From 20e403685345e0e85d2eb54557b61dddc0af885e Mon Sep 17 00:00:00 2001 From: Johan Berntsson Date: Fri, 20 Jun 2008 01:35:54 +0000 Subject: Implemented plugin support for ClientStack, with LindenUDP as the default plugin. This makes it easy for developers to experiment with alternative communication protocols --- OpenSim/Region/Application/OpenSimBase.cs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'OpenSim/Region/Application/OpenSimBase.cs') diff --git a/OpenSim/Region/Application/OpenSimBase.cs b/OpenSim/Region/Application/OpenSimBase.cs index 6d74903..572e98f 100644 --- a/OpenSim/Region/Application/OpenSimBase.cs +++ b/OpenSim/Region/Application/OpenSimBase.cs @@ -81,6 +81,7 @@ namespace OpenSim protected LocalLoginService m_loginService; protected string m_storageDll; + protected string m_clientstackDll; protected List m_clientServers = new List(); protected List m_regionData = new List(); @@ -214,6 +215,7 @@ namespace OpenSim config.Set("shutdown_console_commands_file", String.Empty); config.Set("script_engine", "OpenSim.Region.ScriptEngine.DotNetEngine.dll"); config.Set("asset_database", "sqlite"); + config.Set("clientstack_plugin", "OpenSim.Region.ClientStack.LindenUDP.dll"); } if (DefaultConfig.Configs["StandAlone"] == null) @@ -301,6 +303,7 @@ namespace OpenSim m_scriptEngine = startupConfig.GetString("script_engine", "OpenSim.Region.ScriptEngine.DotNetEngine.dll"); m_assetStorage = startupConfig.GetString("asset_database", "local"); + m_clientstackDll = startupConfig.GetString("clientstack_plugin", "OpenSim.Region.ClientStack.LindenUDP.dll"); } IConfig standaloneConfig = m_config.Configs["StandAlone"]; @@ -553,6 +556,11 @@ namespace OpenSim return new StorageManager(m_storageDll, connectionstring, m_storagePersistPrimInventories); } + protected override ClientStackManager CreateClientStackManager() + { + return new ClientStackManager(m_clientstackDll); + } + protected override Scene CreateScene(RegionInfo regionInfo, StorageManager storageManager, AgentCircuitManager circuitManager) { -- cgit v1.1