aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/OpenSim.Physics
diff options
context:
space:
mode:
authorAdam Frisby2007-06-05 12:55:12 +0000
committerAdam Frisby2007-06-05 12:55:12 +0000
commit1e716260c8166005d3bd33f4cda68502a09994bb (patch)
tree457d68f241ca0d8b28e03fdcd1a93f6aaf75ec44 /OpenSim/OpenSim.Physics
parent* Removing dead comments (diff)
downloadopensim-SC_OLD-1e716260c8166005d3bd33f4cda68502a09994bb.zip
opensim-SC_OLD-1e716260c8166005d3bd33f4cda68502a09994bb.tar.gz
opensim-SC_OLD-1e716260c8166005d3bd33f4cda68502a09994bb.tar.bz2
opensim-SC_OLD-1e716260c8166005d3bd33f4cda68502a09994bb.tar.xz
* Removed MainConsole.Instance.WriteLine completely
* Now exists MainConsole.Instance.Error/Warn/Notice/Verbose -- use those instead * Removed some instances of System.Console use - aiming to depreciate this in favour of MainConsole completely.
Diffstat (limited to 'OpenSim/OpenSim.Physics')
-rw-r--r--OpenSim/OpenSim.Physics/Manager/PhysicsManager.cs4
-rw-r--r--OpenSim/OpenSim.Physics/Manager/PhysicsScene.cs8
2 files changed, 6 insertions, 6 deletions
diff --git a/OpenSim/OpenSim.Physics/Manager/PhysicsManager.cs b/OpenSim/OpenSim.Physics/Manager/PhysicsManager.cs
index 291fc7e..2d96c4d 100644
--- a/OpenSim/OpenSim.Physics/Manager/PhysicsManager.cs
+++ b/OpenSim/OpenSim.Physics/Manager/PhysicsManager.cs
@@ -55,12 +55,12 @@ namespace OpenSim.Physics.Manager
55 55
56 if(_plugins.ContainsKey(engineName)) 56 if(_plugins.ContainsKey(engineName))
57 { 57 {
58 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(LogPriority.LOW,"creating "+engineName); 58 MainConsole.Instance.Notice("creating "+engineName);
59 return _plugins[engineName].GetScene(); 59 return _plugins[engineName].GetScene();
60 } 60 }
61 else 61 else
62 { 62 {
63 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(LogPriority.MEDIUM,"couldn't find physicsEngine: {0}",engineName); 63 MainConsole.Instance.Warn("couldn't find physicsEngine: {0}",engineName);
64 throw new ArgumentException(String.Format("couldn't find physicsEngine: {0}",engineName)); 64 throw new ArgumentException(String.Format("couldn't find physicsEngine: {0}",engineName));
65 } 65 }
66 } 66 }
diff --git a/OpenSim/OpenSim.Physics/Manager/PhysicsScene.cs b/OpenSim/OpenSim.Physics/Manager/PhysicsScene.cs
index 7dab4e1..1eb73b8 100644
--- a/OpenSim/OpenSim.Physics/Manager/PhysicsScene.cs
+++ b/OpenSim/OpenSim.Physics/Manager/PhysicsScene.cs
@@ -68,7 +68,7 @@ namespace OpenSim.Physics.Manager
68 68
69 public override PhysicsActor AddAvatar(PhysicsVector position) 69 public override PhysicsActor AddAvatar(PhysicsVector position)
70 { 70 {
71 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(LogPriority.VERBOSE,"NullPhysicsScene : AddAvatar({0})", position); 71 MainConsole.Instance.Verbose("NullPhysicsScene : AddAvatar({0})", position);
72 return PhysicsActor.Null; 72 return PhysicsActor.Null;
73 } 73 }
74 74
@@ -79,7 +79,7 @@ namespace OpenSim.Physics.Manager
79 79
80 public override PhysicsActor AddPrim(PhysicsVector position, PhysicsVector size) 80 public override PhysicsActor AddPrim(PhysicsVector position, PhysicsVector size)
81 { 81 {
82 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(LogPriority.VERBOSE, "NullPhysicsScene : AddPrim({0},{1})", position, size); 82 MainConsole.Instance.Verbose( "NullPhysicsScene : AddPrim({0},{1})", position, size);
83 return PhysicsActor.Null; 83 return PhysicsActor.Null;
84 } 84 }
85 85
@@ -92,12 +92,12 @@ namespace OpenSim.Physics.Manager
92 92
93 public override void GetResults() 93 public override void GetResults()
94 { 94 {
95 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(LogPriority.VERBOSE, "NullPhysicsScene : GetResults()"); 95 MainConsole.Instance.Verbose( "NullPhysicsScene : GetResults()");
96 } 96 }
97 97
98 public override void SetTerrain(float[] heightMap) 98 public override void SetTerrain(float[] heightMap)
99 { 99 {
100 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(LogPriority.VERBOSE, "NullPhysicsScene : SetTerrain({0} items)", heightMap.Length); 100 MainConsole.Instance.Verbose( "NullPhysicsScene : SetTerrain({0} items)", heightMap.Length);
101 } 101 }
102 102
103 public override void DeleteTerrain() 103 public override void DeleteTerrain()