diff options
author | Robert Adams | 2013-09-25 17:21:20 -0700 |
---|---|---|
committer | Robert Adams | 2013-09-25 17:30:53 -0700 |
commit | fbc9072a5ca4ae3c8474964fbd4ef663eeed1377 (patch) | |
tree | f422d4a107c5318c02255e8cc4432a83608bcdf8 /OpenSim/Region/Framework/Interfaces/ISimulationDataStore.cs | |
parent | Remove time based terrain storage in SQLite so revision number can be used (diff) | |
download | opensim-SC_OLD-fbc9072a5ca4ae3c8474964fbd4ef663eeed1377.zip opensim-SC_OLD-fbc9072a5ca4ae3c8474964fbd4ef663eeed1377.tar.gz opensim-SC_OLD-fbc9072a5ca4ae3c8474964fbd4ef663eeed1377.tar.bz2 opensim-SC_OLD-fbc9072a5ca4ae3c8474964fbd4ef663eeed1377.tar.xz |
varregion: serious rework of TerrainChannel:
-- addition of varaible region size in X and Y
-- internal storage of heightmap changed from double[] to short[]
-- helper routines for handling internal structure while keeping existing API
-- to and from XML that adds region size information (for downward compatibility,
output in the legacy XML format if X and Y are 256)
Updated and commented Constants.RegionSize but didn't change the name for compatibility.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Framework/Interfaces/ISimulationDataStore.cs | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/OpenSim/Region/Framework/Interfaces/ISimulationDataStore.cs b/OpenSim/Region/Framework/Interfaces/ISimulationDataStore.cs index c936a84..847d245 100644 --- a/OpenSim/Region/Framework/Interfaces/ISimulationDataStore.cs +++ b/OpenSim/Region/Framework/Interfaces/ISimulationDataStore.cs | |||
@@ -134,26 +134,26 @@ namespace OpenSim.Region.Framework.Interfaces | |||
134 | Dictionary<string, string> GetExtra(UUID regionID); | 134 | Dictionary<string, string> GetExtra(UUID regionID); |
135 | 135 | ||
136 | void Shutdown(); | 136 | void Shutdown(); |
137 | } | 137 | } |
138 | 138 | ||
139 | // The terrain is stored as a blob in the database with a 'revision' field. | 139 | // The terrain is stored as a blob in the database with a 'revision' field. |
140 | // Some implementations of terrain storage would fill the revision field with | 140 | // Some implementations of terrain storage would fill the revision field with |
141 | // the time the terrain was stored. When real revisions were added and this | 141 | // the time the terrain was stored. When real revisions were added and this |
142 | // feature removed, that left some old entries with the time in the revision | 142 | // feature removed, that left some old entries with the time in the revision |
143 | // field. | 143 | // field. |
144 | // Thus, if revision is greater than 'RevisionHigh' then terrain db entry is | 144 | // Thus, if revision is greater than 'RevisionHigh' then terrain db entry is |
145 | // left over and it is presumed to be 'Legacy256'. | 145 | // left over and it is presumed to be 'Legacy256'. |
146 | // Numbers are arbitrary and are chosen to to reduce possible mis-interpretation. | 146 | // Numbers are arbitrary and are chosen to to reduce possible mis-interpretation. |
147 | // If a revision does not match any of these, it is assumed to be Legacy256. | 147 | // If a revision does not match any of these, it is assumed to be Legacy256. |
148 | public enum DBTerrainRevision | 148 | public enum DBTerrainRevision |
149 | { | 149 | { |
150 | // Terrain is 'double[256,256]' | 150 | // Terrain is 'double[256,256]' |
151 | Legacy256 = 11, | 151 | Legacy256 = 11, |
152 | // Terrain is 'int32, int32, float[,]' where the shorts are X and Y dimensions | 152 | // Terrain is 'int32, int32, float[,]' where the shorts are X and Y dimensions |
153 | // The dimensions are presumed to be multiples of 16 and, more likely, multiples of 256. | 153 | // The dimensions are presumed to be multiples of 16 and, more likely, multiples of 256. |
154 | Variable2D = 22, | 154 | Variable2D = 22, |
155 | // A revision that is not listed above or any revision greater than this value is 'Legacy256'. | 155 | // A revision that is not listed above or any revision greater than this value is 'Legacy256'. |
156 | RevisionHigh = 1234 | 156 | RevisionHigh = 1234 |
157 | } | 157 | } |
158 | 158 | ||
159 | } | 159 | } |