diff options
author | Sean Dague | 2008-07-17 20:58:20 +0000 |
---|---|---|
committer | Sean Dague | 2008-07-17 20:58:20 +0000 |
commit | 4663999c243e7ac6f05f3bb6b76fefb2ff285134 (patch) | |
tree | d99fbe2b410de768c1775db45396cf1a22610339 /OpenSim/Data/NHibernate/Terrain.cs | |
parent | add a Terrain object for the purpose of mapping. This may make sense (diff) | |
download | opensim-SC-4663999c243e7ac6f05f3bb6b76fefb2ff285134.zip opensim-SC-4663999c243e7ac6f05f3bb6b76fefb2ff285134.tar.gz opensim-SC-4663999c243e7ac6f05f3bb6b76fefb2ff285134.tar.bz2 opensim-SC-4663999c243e7ac6f05f3bb6b76fefb2ff285134.tar.xz |
first pass at Terrain implementation
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Data/NHibernate/Terrain.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Data/NHibernate/Terrain.cs b/OpenSim/Data/NHibernate/Terrain.cs index f125ae3..4c184da 100644 --- a/OpenSim/Data/NHibernate/Terrain.cs +++ b/OpenSim/Data/NHibernate/Terrain.cs | |||
@@ -62,6 +62,12 @@ namespace OpenSim.Data.NHibernate | |||
62 | set { map = parseTerrain(value); } | 62 | set { map = parseTerrain(value); } |
63 | } | 63 | } |
64 | 64 | ||
65 | public double[,] Doubles | ||
66 | { | ||
67 | get {return map;} | ||
68 | set {map = value;} | ||
69 | } | ||
70 | |||
65 | private static double[,] parseTerrain(byte[] data) | 71 | private static double[,] parseTerrain(byte[] data) |
66 | { | 72 | { |
67 | double[,] terret = new double[Constants.RegionSize,Constants.RegionSize]; | 73 | double[,] terret = new double[Constants.RegionSize,Constants.RegionSize]; |