aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Interfaces/ITerrainChannel.cs
diff options
context:
space:
mode:
authorRobert Adams2013-11-28 08:22:41 -0800
committerRobert Adams2013-11-28 08:22:41 -0800
commit109136c074fd4ce68f4c5615c05665a81fa7c7d9 (patch)
treeb7fbc4f356f831fc826aaeb804012a056485936b /OpenSim/Region/Framework/Interfaces/ITerrainChannel.cs
parentvarregion: many replacements of in-place arithmetic with calls to (diff)
downloadopensim-SC-109136c074fd4ce68f4c5615c05665a81fa7c7d9.zip
opensim-SC-109136c074fd4ce68f4c5615c05665a81fa7c7d9.tar.gz
opensim-SC-109136c074fd4ce68f4c5615c05665a81fa7c7d9.tar.bz2
opensim-SC-109136c074fd4ce68f4c5615c05665a81fa7c7d9.tar.xz
varregion: add ITerrainChannel.GetHeightAtXYZ() for eventual mesh terrain.
Implementation of same in TerrainChannel.cs. Check for bounds in TerrainChannel[x,y] to prevent array access exceptions.
Diffstat (limited to 'OpenSim/Region/Framework/Interfaces/ITerrainChannel.cs')
-rw-r--r--OpenSim/Region/Framework/Interfaces/ITerrainChannel.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Interfaces/ITerrainChannel.cs b/OpenSim/Region/Framework/Interfaces/ITerrainChannel.cs
index cc8a236..469bd31 100644
--- a/OpenSim/Region/Framework/Interfaces/ITerrainChannel.cs
+++ b/OpenSim/Region/Framework/Interfaces/ITerrainChannel.cs
@@ -37,6 +37,8 @@ namespace OpenSim.Region.Framework.Interfaces
37 37
38 double this[int x, int y] { get; set; } 38 double this[int x, int y] { get; set; }
39 39
40 float GetHeightAtXYZ(float x, float y, float z);
41
40 // Return the packaged terrain data for passing into lower levels of communication 42 // Return the packaged terrain data for passing into lower levels of communication
41 TerrainData GetTerrainData(); 43 TerrainData GetTerrainData();
42 44