From 67e12b95ea7b68f4904a7484d77ecfd787d16d0c Mon Sep 17 00:00:00 2001
From: lbsa71
Date: Tue, 30 Oct 2007 09:05:31 +0000
Subject: * Optimized usings * Shortened type references * Removed redundant
'this' qualifier
---
.../Region/Physics/Manager/PhysicsPluginManager.cs | 143 +++++++++++----------
1 file changed, 72 insertions(+), 71 deletions(-)
(limited to 'OpenSim/Region/Physics/Manager/PhysicsPluginManager.cs')
diff --git a/OpenSim/Region/Physics/Manager/PhysicsPluginManager.cs b/OpenSim/Region/Physics/Manager/PhysicsPluginManager.cs
index 81bc938..09ebf29 100644
--- a/OpenSim/Region/Physics/Manager/PhysicsPluginManager.cs
+++ b/OpenSim/Region/Physics/Manager/PhysicsPluginManager.cs
@@ -33,77 +33,77 @@ using OpenSim.Framework.Console;
namespace OpenSim.Region.Physics.Manager
{
- ///
- /// Description of MyClass.
- ///
- public class PhysicsPluginManager
- {
- private Dictionary _plugins=new Dictionary();
-
- public PhysicsPluginManager()
- {
-
- }
-
- public PhysicsScene GetPhysicsScene(string engineName)
- {
+ ///
+ /// Description of MyClass.
+ ///
+ public class PhysicsPluginManager
+ {
+ private Dictionary _plugins = new Dictionary();
+
+ public PhysicsPluginManager()
+ {
+ }
+
+ public PhysicsScene GetPhysicsScene(string engineName)
+ {
if (String.IsNullOrEmpty(engineName))
{
return PhysicsScene.Null;
}
- if(_plugins.ContainsKey(engineName))
- {
- MainLog.Instance.Verbose("PHYSICS","creating "+engineName);
- return _plugins[engineName].GetScene();
- }
- else
+ if (_plugins.ContainsKey(engineName))
+ {
+ MainLog.Instance.Verbose("PHYSICS", "creating " + engineName);
+ return _plugins[engineName].GetScene();
+ }
+ else
{
MainLog.Instance.Warn("PHYSICS", "couldn't find physicsEngine: {0}", engineName);
- throw new ArgumentException(String.Format("couldn't find physicsEngine: {0}",engineName));
- }
- }
-
- public void LoadPlugins()
- {
- string path = Path.Combine(AppDomain.CurrentDomain.BaseDirectory ,"Physics");
- string[] pluginFiles = Directory.GetFiles(path, "*.dll");
-
+ throw new ArgumentException(String.Format("couldn't find physicsEngine: {0}", engineName));
+ }
+ }
+
+ public void LoadPlugins()
+ {
+ string path = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Physics");
+ string[] pluginFiles = Directory.GetFiles(path, "*.dll");
+
- for(int i= 0; i