From cddaaf3e13fdadf473bd8fd63e37c4805b48dde8 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Thu, 26 Feb 2009 22:54:50 +0000 Subject: svn attribute fixes so that we can play nice between windows and linux --- OpenSim/Framework/IRegionCreator.cs | 24 ++++---- OpenSim/Framework/IRegistryCore.cs | 32 +++++------ OpenSim/Framework/RegistryCore.cs | 108 ++++++++++++++++++------------------ 3 files changed, 82 insertions(+), 82 deletions(-) (limited to 'OpenSim/Framework') diff --git a/OpenSim/Framework/IRegionCreator.cs b/OpenSim/Framework/IRegionCreator.cs index 7920ee4..0da5c0f 100644 --- a/OpenSim/Framework/IRegionCreator.cs +++ b/OpenSim/Framework/IRegionCreator.cs @@ -1,12 +1,12 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace OpenSim.Framework -{ - public delegate void NewRegionCreated(IScene scene); - public interface IRegionCreator - { - event NewRegionCreated OnNewRegionCreated; - } -} +using System; +using System.Collections.Generic; +using System.Text; + +namespace OpenSim.Framework +{ + public delegate void NewRegionCreated(IScene scene); + public interface IRegionCreator + { + event NewRegionCreated OnNewRegionCreated; + } +} diff --git a/OpenSim/Framework/IRegistryCore.cs b/OpenSim/Framework/IRegistryCore.cs index 9f251c5..be7e1e6 100644 --- a/OpenSim/Framework/IRegistryCore.cs +++ b/OpenSim/Framework/IRegistryCore.cs @@ -1,16 +1,16 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace OpenSim.Framework -{ - public interface IRegistryCore - { - T Get(); - void RegisterInterface(T iface); - bool TryGet(out T iface); - - void StackModuleInterface(M mod); - T[] RequestModuleInterfaces(); - } -} +using System; +using System.Collections.Generic; +using System.Text; + +namespace OpenSim.Framework +{ + public interface IRegistryCore + { + T Get(); + void RegisterInterface(T iface); + bool TryGet(out T iface); + + void StackModuleInterface(M mod); + T[] RequestModuleInterfaces(); + } +} diff --git a/OpenSim/Framework/RegistryCore.cs b/OpenSim/Framework/RegistryCore.cs index ee15845..08d343a 100644 --- a/OpenSim/Framework/RegistryCore.cs +++ b/OpenSim/Framework/RegistryCore.cs @@ -1,54 +1,54 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace OpenSim.Framework -{ - public class RegistryCore : IRegistryCore - { - protected Dictionary m_moduleInterfaces = new Dictionary(); - - /// - /// Register an Module interface. - /// - /// - /// - public void RegisterInterface(T iface) - { - lock (m_moduleInterfaces) - { - if (!m_moduleInterfaces.ContainsKey(typeof(T))) - { - m_moduleInterfaces.Add(typeof(T), iface); - } - } - } - - public bool TryGet(out T iface) - { - if (m_moduleInterfaces.ContainsKey(typeof(T))) - { - iface = (T)m_moduleInterfaces[typeof(T)]; - return true; - } - iface = default(T); - return false; - } - - public T Get() - { - return (T)m_moduleInterfaces[typeof(T)]; - } - - public void StackModuleInterface(M mod) - { - - } - - public T[] RequestModuleInterfaces() - { - return new T[] { default(T) }; - } - - } -} +using System; +using System.Collections.Generic; +using System.Text; + +namespace OpenSim.Framework +{ + public class RegistryCore : IRegistryCore + { + protected Dictionary m_moduleInterfaces = new Dictionary(); + + /// + /// Register an Module interface. + /// + /// + /// + public void RegisterInterface(T iface) + { + lock (m_moduleInterfaces) + { + if (!m_moduleInterfaces.ContainsKey(typeof(T))) + { + m_moduleInterfaces.Add(typeof(T), iface); + } + } + } + + public bool TryGet(out T iface) + { + if (m_moduleInterfaces.ContainsKey(typeof(T))) + { + iface = (T)m_moduleInterfaces[typeof(T)]; + return true; + } + iface = default(T); + return false; + } + + public T Get() + { + return (T)m_moduleInterfaces[typeof(T)]; + } + + public void StackModuleInterface(M mod) + { + + } + + public T[] RequestModuleInterfaces() + { + return new T[] { default(T) }; + } + + } +} -- cgit v1.1