From ca8d1d57e1bbf49cb52abe81b3a7246dacbe9b03 Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Fri, 27 Jun 2008 02:15:57 +0000 Subject: Mantis#1591. Thank you graciously, Sempuki for a patch that: Currently module loading is done ad-hoc. I propose creating a simple loader class that leverages Mono.Addins (and perhaps the new .NET addins when they become available in mono). Attached is a basic patch for review that compiles into HEAD, but doesn't yet replace any existing ad-hoc loaders. --- ThirdParty/3Di/RegionProxy/RegionProxyPlugin.cs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'ThirdParty/3Di/RegionProxy') diff --git a/ThirdParty/3Di/RegionProxy/RegionProxyPlugin.cs b/ThirdParty/3Di/RegionProxy/RegionProxyPlugin.cs index 9bb883e..a3108f6 100644 --- a/ThirdParty/3Di/RegionProxy/RegionProxyPlugin.cs +++ b/ThirdParty/3Di/RegionProxy/RegionProxyPlugin.cs @@ -68,6 +68,18 @@ namespace OpenSim.ApplicationPlugins.RegionProxy private ProxyServer proxy; #region IApplicationPlugin Members + // TODO: required by IPlugin, but likely not at all right + string m_name = "RegionProxyPlugin"; + string m_version = "0.0"; + + public string Version { get { return m_version; } } + public string Name { get { return m_name; } } + + public void Initialise() + { + m_log.Info("[PROXY]: " + Name + " cannot be default-initialized!"); + throw new PluginNotInitialisedException (Name); + } public void Initialise(OpenSimBase openSim) { @@ -89,7 +101,7 @@ namespace OpenSim.ApplicationPlugins.RegionProxy proxy = new ProxyServer(m_log); } - public void Close() + public void Dispose() { } -- cgit v1.1