aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
diff options
context:
space:
mode:
authorAdam Frisby2007-08-01 21:27:58 +0000
committerAdam Frisby2007-08-01 21:27:58 +0000
commitd2c7bd3fff334f9453d16cab472ff05dd027206f (patch)
tree6a598f2552d25b59f4ee997dd55c065108a7f0b4 /OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
parent* Updated CONTRIBUTORS.txt - added new "Testers" section. (diff)
downloadopensim-SC-d2c7bd3fff334f9453d16cab472ff05dd027206f.zip
opensim-SC-d2c7bd3fff334f9453d16cab472ff05dd027206f.tar.gz
opensim-SC-d2c7bd3fff334f9453d16cab472ff05dd027206f.tar.bz2
opensim-SC-d2c7bd3fff334f9453d16cab472ff05dd027206f.tar.xz
* Terrain engine now knows the region coordinates - this can be later used to allow loading of single terrain files for multiple regions.
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs12
1 files changed, 11 insertions, 1 deletions
diff --git a/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs b/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
index f37d625..b54f4fe 100644
--- a/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
+++ b/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
@@ -88,14 +88,24 @@ namespace OpenSim.Region.Terrain
88 int w, h; 88 int w, h;
89 89
90 /// <summary> 90 /// <summary>
91 /// Used to determine what offset to use when loading singular heightmaps across multiple sims
92 /// </summary>
93 private int offsetX;
94 private int offsetY;
95
96
97 /// <summary>
91 /// Generate a new TerrainEngine instance and creates a new heightmap 98 /// Generate a new TerrainEngine instance and creates a new heightmap
92 /// </summary> 99 /// </summary>
93 public TerrainEngine() 100 public TerrainEngine(int X, int Y)
94 { 101 {
95 w = 256; 102 w = 256;
96 h = 256; 103 h = 256;
97 heightmap = new Channel(w, h); 104 heightmap = new Channel(w, h);
98 105
106 offsetX = X;
107 offsetY = Y;
108
99 tainted++; 109 tainted++;
100 } 110 }
101 111