aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/Config.cs
diff options
context:
space:
mode:
authorgareth2007-03-02 22:17:39 +0000
committergareth2007-03-02 22:17:39 +0000
commitcb55056e3bb0d34e51d8efa60cb8ef82484af900 (patch)
tree5bc1a97e7f8c1629dd99433c0751a77159fc3555 /src/Config.cs
parentr105 somehow got put in wrong place, so replacing files (diff)
downloadopensim-SC-cb55056e3bb0d34e51d8efa60cb8ef82484af900.zip
opensim-SC-cb55056e3bb0d34e51d8efa60cb8ef82484af900.tar.gz
opensim-SC-cb55056e3bb0d34e51d8efa60cb8ef82484af900.tar.bz2
opensim-SC-cb55056e3bb0d34e51d8efa60cb8ef82484af900.tar.xz
Began implementing basic physics engine plugin framework
Diffstat (limited to 'src/Config.cs')
-rw-r--r--src/Config.cs11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/Config.cs b/src/Config.cs
index d4a0797..f85e4d5 100644
--- a/src/Config.cs
+++ b/src/Config.cs
@@ -106,18 +106,19 @@ namespace OpenSim
106 } 106 }
107 107
108 public World LoadWorld() { 108 public World LoadWorld() {
109 IObjectSet world_result = db.Get(typeof(OpenSim.world.World)); 109 Console.WriteLine("Config.cs:LoadWorld() - Looking for a world object in local DB");
110 if(world_result.Count==1) { 110 // IObjectSet world_result = db.Get(typeof(OpenSim.world.World));
111 // if(world_result.Count==1) {
111 Console.WriteLine("Config.cs:LoadWorld() - Found an OpenSim.world.World object in local database, loading"); 112 Console.WriteLine("Config.cs:LoadWorld() - Found an OpenSim.world.World object in local database, loading");
112 return (World)world_result.Next(); 113 //return (World)world_result.Next();
113 } else { 114 // } else {
114 Console.WriteLine("Config.cs:LoadWorld() - Could not find the world or too many worlds! Constructing blank one"); 115 Console.WriteLine("Config.cs:LoadWorld() - Could not find the world or too many worlds! Constructing blank one");
115 World blank = new World(); 116 World blank = new World();
116 Console.WriteLine("Config.cs:LoadWorld() - Saving initial world state to disk"); 117 Console.WriteLine("Config.cs:LoadWorld() - Saving initial world state to disk");
117 db.Set(blank); 118 db.Set(blank);
118 db.Commit(); 119 db.Commit();
119 return blank; 120 return blank;
120 } 121 // }
121 } 122 }
122 123
123 public void LoadFromGrid() { 124 public void LoadFromGrid() {