diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Modules/ExportSerialiser/SerialiseTerrain.cs | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/OpenSim/Region/Environment/Modules/ExportSerialiser/SerialiseTerrain.cs b/OpenSim/Region/Environment/Modules/ExportSerialiser/SerialiseTerrain.cs index 0c79999..155256b 100644 --- a/OpenSim/Region/Environment/Modules/ExportSerialiser/SerialiseTerrain.cs +++ b/OpenSim/Region/Environment/Modules/ExportSerialiser/SerialiseTerrain.cs | |||
@@ -1,25 +1,25 @@ | |||
1 | using OpenSim.Region.Environment.Modules.Terrain; | 1 | using OpenSim.Region.Environment.Modules.Terrain; |
2 | using OpenSim.Region.Environment.Scenes; | 2 | using OpenSim.Region.Environment.Scenes; |
3 | 3 | ||
4 | namespace OpenSim.Region.Environment.Modules.ExportSerialiser | 4 | namespace OpenSim.Region.Environment.Modules.ExportSerialiser |
5 | { | 5 | { |
6 | class SerialiseTerrain : IFileSerialiser | 6 | class SerialiseTerrain : IFileSerialiser |
7 | { | 7 | { |
8 | #region IFileSerialiser Members | 8 | #region IFileSerialiser Members |
9 | 9 | ||
10 | public string WriteToFile(Scene scene, string dir) | 10 | public string WriteToFile(Scene scene, string dir) |
11 | { | 11 | { |
12 | ITerrainLoader fileSystemExporter = new Terrain.FileLoaders.RAW32(); | 12 | ITerrainLoader fileSystemExporter = new Terrain.FileLoaders.RAW32(); |
13 | string targetFileName = dir + "heightmap.r32"; | 13 | string targetFileName = dir + "heightmap.r32"; |
14 | 14 | ||
15 | lock (scene.Heightmap) | 15 | lock (scene.Heightmap) |
16 | { | 16 | { |
17 | fileSystemExporter.SaveFile(targetFileName, scene.Heightmap); | 17 | fileSystemExporter.SaveFile(targetFileName, scene.Heightmap); |
18 | } | 18 | } |
19 | 19 | ||
20 | return "heightmap.r32"; | 20 | return "heightmap.r32"; |
21 | } | 21 | } |
22 | 22 | ||
23 | #endregion | 23 | #endregion |
24 | } | 24 | } |
25 | } | 25 | } |