aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules/Scripting/Minimodule/Heightmap.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/OptionalModules/Scripting/Minimodule/Heightmap.cs')
-rw-r--r--OpenSim/Region/OptionalModules/Scripting/Minimodule/Heightmap.cs68
1 files changed, 34 insertions, 34 deletions
diff --git a/OpenSim/Region/OptionalModules/Scripting/Minimodule/Heightmap.cs b/OpenSim/Region/OptionalModules/Scripting/Minimodule/Heightmap.cs
index c75c6e7..6fa6ebe 100644
--- a/OpenSim/Region/OptionalModules/Scripting/Minimodule/Heightmap.cs
+++ b/OpenSim/Region/OptionalModules/Scripting/Minimodule/Heightmap.cs
@@ -1,34 +1,34 @@
1using OpenSim.Region.Framework.Scenes; 1using OpenSim.Region.Framework.Scenes;
2 2
3namespace OpenSim.Region.OptionalModules.Scripting.Minimodule 3namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
4{ 4{
5 public class Heightmap : IHeightmap 5 public class Heightmap : IHeightmap
6 { 6 {
7 private Scene m_scene; 7 private Scene m_scene;
8 8
9 public Heightmap(Scene scene) 9 public Heightmap(Scene scene)
10 { 10 {
11 m_scene = scene; 11 m_scene = scene;
12 } 12 }
13 13
14 public int Height 14 public int Height
15 { 15 {
16 get { return m_scene.Heightmap.Height; } 16 get { return m_scene.Heightmap.Height; }
17 } 17 }
18 18
19 public int Width 19 public int Width
20 { 20 {
21 get { return m_scene.Heightmap.Width; } 21 get { return m_scene.Heightmap.Width; }
22 } 22 }
23 23
24 public double Get(int x, int y) 24 public double Get(int x, int y)
25 { 25 {
26 return m_scene.Heightmap[x, y]; 26 return m_scene.Heightmap[x, y];
27 } 27 }
28 28
29 public void Set(int x, int y, double val) 29 public void Set(int x, int y, double val)
30 { 30 {
31 m_scene.Heightmap[x, y] = val; 31 m_scene.Heightmap[x, y] = val;
32 } 32 }
33 } 33 }
34} 34}