aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tests
diff options
context:
space:
mode:
authorUbitUmarov2016-09-17 16:42:40 +0100
committerUbitUmarov2016-09-17 16:42:40 +0100
commit71bd3ce49f1159251ec4339d098d93c2119729f0 (patch)
treeb9d73349600abc18b63ee5201fc60b8a1d810334 /OpenSim/Tests
parent add to databases a table to store baked terrain. (diff)
downloadopensim-SC_OLD-71bd3ce49f1159251ec4339d098d93c2119729f0.zip
opensim-SC_OLD-71bd3ce49f1159251ec4339d098d93c2119729f0.tar.gz
opensim-SC_OLD-71bd3ce49f1159251ec4339d098d93c2119729f0.tar.bz2
opensim-SC_OLD-71bd3ce49f1159251ec4339d098d93c2119729f0.tar.xz
add load baked terrain methods
Diffstat (limited to '')
-rw-r--r--OpenSim/Tests/Common/Mock/MockRegionDataPlugin.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/OpenSim/Tests/Common/Mock/MockRegionDataPlugin.cs b/OpenSim/Tests/Common/Mock/MockRegionDataPlugin.cs
index 61fee4b..8daa19d 100644
--- a/OpenSim/Tests/Common/Mock/MockRegionDataPlugin.cs
+++ b/OpenSim/Tests/Common/Mock/MockRegionDataPlugin.cs
@@ -89,6 +89,11 @@ namespace OpenSim.Data.Null
89 return m_store.LoadTerrain(regionID, pSizeX, pSizeY, pSizeZ); 89 return m_store.LoadTerrain(regionID, pSizeX, pSizeY, pSizeZ);
90 } 90 }
91 91
92 public TerrainData LoadBakedTerrain(UUID regionID, int pSizeX, int pSizeY, int pSizeZ)
93 {
94 return m_store.LoadBakedTerrain(regionID, pSizeX, pSizeY, pSizeZ);
95 }
96
92 public void StoreLandObject(ILandObject Parcel) 97 public void StoreLandObject(ILandObject Parcel)
93 { 98 {
94 m_store.StoreLandObject(Parcel); 99 m_store.StoreLandObject(Parcel);
@@ -343,6 +348,14 @@ namespace OpenSim.Data.Null
343 return null; 348 return null;
344 } 349 }
345 350
351 public TerrainData LoadBakedTerrain(UUID regionID, int pSizeX, int pSizeY, int pSizeZ)
352 {
353 if (m_bakedterrains.ContainsKey(regionID))
354 return m_bakedterrains[regionID];
355 else
356 return null;
357 }
358
346 public double[,] LoadTerrain(UUID regionID) 359 public double[,] LoadTerrain(UUID regionID)
347 { 360 {
348 if (m_terrains.ContainsKey(regionID)) 361 if (m_terrains.ContainsKey(regionID))