aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/Null/NullSimulationData.cs
diff options
context:
space:
mode:
authorMic Bowman2011-04-04 20:02:13 -0700
committerMic Bowman2011-04-04 20:02:13 -0700
commitb2fbadeae82f0bdbfb3b7bdc8e14cb7f5b693092 (patch)
tree5971b73308b5bd37e1269d202acfb118d7fa6a29 /OpenSim/Data/Null/NullSimulationData.cs
parentImplement rezzing coalesced objects (diff)
downloadopensim-SC_OLD-b2fbadeae82f0bdbfb3b7bdc8e14cb7f5b693092.zip
opensim-SC_OLD-b2fbadeae82f0bdbfb3b7bdc8e14cb7f5b693092.tar.gz
opensim-SC_OLD-b2fbadeae82f0bdbfb3b7bdc8e14cb7f5b693092.tar.bz2
opensim-SC_OLD-b2fbadeae82f0bdbfb3b7bdc8e14cb7f5b693092.tar.xz
Updates NullStorage plugin.
Thanks MisterBlue...
Diffstat (limited to '')
-rw-r--r--OpenSim/Data/Null/NullSimulationData.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/OpenSim/Data/Null/NullSimulationData.cs b/OpenSim/Data/Null/NullSimulationData.cs
index eb4e313..e8d733b 100644
--- a/OpenSim/Data/Null/NullSimulationData.cs
+++ b/OpenSim/Data/Null/NullSimulationData.cs
@@ -38,6 +38,15 @@ namespace OpenSim.Data.Null
38 /// </summary> 38 /// </summary>
39 public class NullSimulationData : ISimulationDataStore 39 public class NullSimulationData : ISimulationDataStore
40 { 40 {
41 public NullSimulationData()
42 {
43 }
44
45 public NullSimulationData(string connectionString)
46 {
47 Initialise(connectionString);
48 }
49
41 public void Initialise(string dbfile) 50 public void Initialise(string dbfile)
42 { 51 {
43 return; 52 return;
@@ -85,12 +94,20 @@ namespace OpenSim.Data.Null
85 return new List<SceneObjectGroup>(); 94 return new List<SceneObjectGroup>();
86 } 95 }
87 96
97 Dictionary<UUID, double[,]> m_terrains = new Dictionary<UUID, double[,]>();
88 public void StoreTerrain(double[,] ter, UUID regionID) 98 public void StoreTerrain(double[,] ter, UUID regionID)
89 { 99 {
100 if (m_terrains.ContainsKey(regionID))
101 m_terrains.Remove(regionID);
102 m_terrains.Add(regionID, ter);
90 } 103 }
91 104
92 public double[,] LoadTerrain(UUID regionID) 105 public double[,] LoadTerrain(UUID regionID)
93 { 106 {
107 if (m_terrains.ContainsKey(regionID))
108 {
109 return m_terrains[regionID];
110 }
94 return null; 111 return null;
95 } 112 }
96 113