diff options
author | MW | 2007-03-08 18:07:53 +0000 |
---|---|---|
committer | MW | 2007-03-08 18:07:53 +0000 |
commit | aa120266d79b87b39bf80f3f7aaca8970447bde1 (patch) | |
tree | cecae22f2d8b2fc7541a011d2db86f819901c51f /src/Config | |
parent | Changed water height to default of 20 (diff) | |
download | opensim-SC_OLD-aa120266d79b87b39bf80f3f7aaca8970447bde1.zip opensim-SC_OLD-aa120266d79b87b39bf80f3f7aaca8970447bde1.tar.gz opensim-SC_OLD-aa120266d79b87b39bf80f3f7aaca8970447bde1.tar.bz2 opensim-SC_OLD-aa120266d79b87b39bf80f3f7aaca8970447bde1.tar.xz |
Primitive's shape and scale are now saved into database and reloaded.
New ServerConsole command: regenerate - will regenerate the terrain of the whole sim.
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!!!"); |