diff options
Diffstat (limited to '')
-rw-r--r-- | src/Config.cs | 2 | ||||
-rw-r--r-- | src/Config/SimConfig/Db4SimConfig.cs | 14 |
2 files changed, 16 insertions, 0 deletions
diff --git a/src/Config.cs b/src/Config.cs index c42b80e..c7cd3cd 100644 --- a/src/Config.cs +++ b/src/Config.cs | |||
@@ -63,6 +63,8 @@ namespace OpenSim | |||
63 | public abstract void InitConfig(); | 63 | public abstract void InitConfig(); |
64 | public abstract void LoadFromGrid(); | 64 | public abstract void LoadFromGrid(); |
65 | public abstract World LoadWorld(); | 65 | public abstract World LoadWorld(); |
66 | public abstract void SaveMap(); | ||
67 | |||
66 | } | 68 | } |
67 | 69 | ||
68 | public interface ISimConfig | 70 | public interface ISimConfig |
diff --git a/src/Config/SimConfig/Db4SimConfig.cs b/src/Config/SimConfig/Db4SimConfig.cs index 4a06187..fc2c019 100644 --- a/src/Config/SimConfig/Db4SimConfig.cs +++ b/src/Config/SimConfig/Db4SimConfig.cs | |||
@@ -128,6 +128,20 @@ namespace Db40SimConfig | |||
128 | } | 128 | } |
129 | return blank; | 129 | return blank; |
130 | } | 130 | } |
131 | |||
132 | public override void SaveMap() | ||
133 | { | ||
134 | IObjectSet world_result = db.Get(typeof(MapStorage)); | ||
135 | if(world_result.Count>0) { | ||
136 | ServerConsole.MainConsole.Instance.WriteLine("Config.cs:LoadWorld() - updating saved copy of heightmap in local database"); | ||
137 | MapStorage map=(MapStorage)world_result.Next(); | ||
138 | db.Delete(map); | ||
139 | } | ||
140 | MapStorage map1= new MapStorage(); | ||
141 | map1.Map = OpenSim_Main.local_world.LandMap; | ||
142 | db.Set(map1); | ||
143 | db.Commit(); | ||
144 | } | ||
131 | 145 | ||
132 | public override void LoadFromGrid() { | 146 | public override void LoadFromGrid() { |
133 | ServerConsole.MainConsole.Instance.WriteLine("Config.cs:LoadFromGrid() - dummy function, DOING ABSOLUTELY NOTHING AT ALL!!!"); | 147 | ServerConsole.MainConsole.Instance.WriteLine("Config.cs:LoadFromGrid() - dummy function, DOING ABSOLUTELY NOTHING AT ALL!!!"); |