aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/EstateSettings.cs
diff options
context:
space:
mode:
authorMelanie Thielker2008-07-14 01:32:16 +0000
committerMelanie Thielker2008-07-14 01:32:16 +0000
commiteaf9383b599041c86877cb11a698ae7ad4be8d46 (patch)
treedf5561fae3aeff44c19e5a625ad818f8ee08606b /OpenSim/Framework/EstateSettings.cs
parentPatch #9148 (diff)
downloadopensim-SC_OLD-eaf9383b599041c86877cb11a698ae7ad4be8d46.zip
opensim-SC_OLD-eaf9383b599041c86877cb11a698ae7ad4be8d46.tar.gz
opensim-SC_OLD-eaf9383b599041c86877cb11a698ae7ad4be8d46.tar.bz2
opensim-SC_OLD-eaf9383b599041c86877cb11a698ae7ad4be8d46.tar.xz
Patch #9149
Make all of the toggles go live. Utilizes the new database table for almost everything. Remove lots of now unneeded settings from the EstateSettings class
Diffstat (limited to 'OpenSim/Framework/EstateSettings.cs')
-rw-r--r--OpenSim/Framework/EstateSettings.cs275
1 files changed, 0 insertions, 275 deletions
diff --git a/OpenSim/Framework/EstateSettings.cs b/OpenSim/Framework/EstateSettings.cs
index 35ade66..0cab498 100644
--- a/OpenSim/Framework/EstateSettings.cs
+++ b/OpenSim/Framework/EstateSettings.cs
@@ -60,25 +60,9 @@ namespace OpenSim.Framework
60 private int m_redirectGridY; 60 private int m_redirectGridY;
61 private float m_sunHour; 61 private float m_sunHour;
62 private LLVector3 m_sunPosition; 62 private LLVector3 m_sunPosition;
63 private LLUUID m_terrainBase0;
64 private LLUUID m_terrainBase1;
65 private LLUUID m_terrainBase2;
66 private LLUUID m_terrainBase3;
67 private LLUUID m_terrainDetail0;
68 private LLUUID m_terrainDetail1;
69 private LLUUID m_terrainDetail2;
70 private LLUUID m_terrainDetail3;
71 private string m_terrainFile; 63 private string m_terrainFile;
72 private float m_terrainHeightRange0;
73 private float m_terrainHeightRange1;
74 private float m_terrainHeightRange2;
75 private float m_terrainHeightRange3;
76 private LLUUID m_terrainImageID; 64 private LLUUID m_terrainImageID;
77 private double m_terrainMultiplier; 65 private double m_terrainMultiplier;
78 private float m_terrainStartHeight0;
79 private float m_terrainStartHeight1;
80 private float m_terrainStartHeight2;
81 private float m_terrainStartHeight3;
82 66
83 public EstateSettings() 67 public EstateSettings()
84 { 68 {
@@ -172,179 +156,8 @@ namespace OpenSim.Framework
172 } 156 }
173 157
174 158
175 // Region Information
176 // Low resolution 'base' textures. No longer used.
177
178 public LLUUID terrainBase0
179 {
180 get { return m_terrainBase0; }
181 set
182 {
183 m_terrainBase0 = value;
184 configMember.forceSetConfigurationOption("terrain_base_0", m_terrainBase0.ToString());
185 }
186 }
187
188 public LLUUID terrainBase1
189 {
190 get { return m_terrainBase1; }
191 set
192 {
193 m_terrainBase1 = value;
194 configMember.forceSetConfigurationOption("terrain_base_1", m_terrainBase1.ToString());
195 }
196 }
197
198 public LLUUID terrainBase2
199 {
200 get { return m_terrainBase2; }
201 set
202 {
203 m_terrainBase2 = value;
204 configMember.forceSetConfigurationOption("terrain_base_2", m_terrainBase2.ToString());
205 }
206 }
207
208 public LLUUID terrainBase3
209 {
210 get { return m_terrainBase3; }
211 set
212 {
213 m_terrainBase3 = value;
214 configMember.forceSetConfigurationOption("terrain_base_3", m_terrainBase3.ToString());
215 }
216 }
217
218
219 // Higher resolution terrain textures
220
221 public LLUUID terrainDetail0
222 {
223 get { return m_terrainDetail0; }
224 set
225 {
226 m_terrainDetail0 = value;
227 configMember.forceSetConfigurationOption("terrain_detail_0", m_terrainDetail0.ToString());
228 }
229 }
230
231 public LLUUID terrainDetail1
232 {
233 get { return m_terrainDetail1; }
234 set
235 {
236 m_terrainDetail1 = value;
237 configMember.forceSetConfigurationOption("terrain_detail_1", m_terrainDetail1.ToString());
238 }
239 }
240
241 public LLUUID terrainDetail2
242 {
243 get { return m_terrainDetail2; }
244 set
245 {
246 m_terrainDetail2 = value;
247 configMember.forceSetConfigurationOption("terrain_detail_2", m_terrainDetail2.ToString());
248 }
249 }
250
251 public LLUUID terrainDetail3
252 {
253 get { return m_terrainDetail3; }
254 set
255 {
256 m_terrainDetail3 = value;
257 configMember.forceSetConfigurationOption("terrain_detail_3", m_terrainDetail3.ToString());
258 }
259 }
260
261 // First quad - each point is bilinearly interpolated at each meter of terrain 159 // First quad - each point is bilinearly interpolated at each meter of terrain
262 160
263 public float terrainStartHeight0
264 {
265 get { return m_terrainStartHeight0; }
266 set
267 {
268 m_terrainStartHeight0 = value;
269 configMember.forceSetConfigurationOption("terrain_start_height_0", m_terrainStartHeight0.ToString());
270 }
271 }
272
273
274 public float terrainStartHeight1
275 {
276 get { return m_terrainStartHeight1; }
277 set
278 {
279 m_terrainStartHeight1 = value;
280 configMember.forceSetConfigurationOption("terrain_start_height_1", m_terrainStartHeight1.ToString());
281 }
282 }
283
284 public float terrainStartHeight2
285 {
286 get { return m_terrainStartHeight2; }
287 set
288 {
289 m_terrainStartHeight2 = value;
290 configMember.forceSetConfigurationOption("terrain_start_height_2", m_terrainStartHeight2.ToString());
291 }
292 }
293
294 public float terrainStartHeight3
295 {
296 get { return m_terrainStartHeight3; }
297 set
298 {
299 m_terrainStartHeight3 = value;
300 configMember.forceSetConfigurationOption("terrain_start_height_3", m_terrainStartHeight3.ToString());
301 }
302 }
303
304 // Second quad - also bilinearly interpolated.
305 // Terrain texturing is done that:
306 // 0..3 (0 = base0, 3 = base3) = (terrain[x,y] - start[x,y]) / range[x,y]
307
308 public float terrainHeightRange0
309 {
310 get { return m_terrainHeightRange0; }
311 set
312 {
313 m_terrainHeightRange0 = value;
314 configMember.forceSetConfigurationOption("terrain_height_range_0", m_terrainHeightRange0.ToString());
315 }
316 }
317
318 public float terrainHeightRange1
319 {
320 get { return m_terrainHeightRange1; }
321 set
322 {
323 m_terrainHeightRange1 = value;
324 configMember.forceSetConfigurationOption("terrain_height_range_1", m_terrainHeightRange1.ToString());
325 }
326 }
327
328 public float terrainHeightRange2
329 {
330 get { return m_terrainHeightRange2; }
331 set
332 {
333 m_terrainHeightRange2 = value;
334 configMember.forceSetConfigurationOption("terrain_height_range_2", m_terrainHeightRange2.ToString());
335 }
336 }
337
338 public float terrainHeightRange3
339 {
340 get { return m_terrainHeightRange3; }
341 set
342 {
343 m_terrainHeightRange3 = value;
344 configMember.forceSetConfigurationOption("terrain_height_range_3", m_terrainHeightRange3.ToString());
345 }
346 }
347
348 // Terrain Default (Must be in F32 Format!) 161 // Terrain Default (Must be in F32 Format!)
349 162
350 public string terrainFile 163 public string terrainFile
@@ -655,42 +468,6 @@ namespace OpenSim.Framework
655 configMember.addConfigurationOption("price_per_meter", ConfigurationOption.ConfigurationTypes.TYPE_UINT32, 468 configMember.addConfigurationOption("price_per_meter", ConfigurationOption.ConfigurationTypes.TYPE_UINT32,
656 String.Empty, "1", true); 469 String.Empty, "1", true);
657 470
658 configMember.addConfigurationOption("terrain_base_0", ConfigurationOption.ConfigurationTypes.TYPE_LLUUID, String.Empty,
659 "b8d3965a-ad78-bf43-699b-bff8eca6c975", true);
660 configMember.addConfigurationOption("terrain_base_1", ConfigurationOption.ConfigurationTypes.TYPE_LLUUID, String.Empty,
661 "abb783e6-3e93-26c0-248a-247666855da3", true);
662 configMember.addConfigurationOption("terrain_base_2", ConfigurationOption.ConfigurationTypes.TYPE_LLUUID, String.Empty,
663 "179cdabd-398a-9b6b-1391-4dc333ba321f", true);
664 configMember.addConfigurationOption("terrain_base_3", ConfigurationOption.ConfigurationTypes.TYPE_LLUUID, String.Empty,
665 "beb169c7-11ea-fff2-efe5-0f24dc881df2", true);
666
667 configMember.addConfigurationOption("terrain_detail_0", ConfigurationOption.ConfigurationTypes.TYPE_LLUUID,
668 String.Empty, "00000000-0000-0000-0000-000000000000", true);
669 configMember.addConfigurationOption("terrain_detail_1", ConfigurationOption.ConfigurationTypes.TYPE_LLUUID,
670 String.Empty, "00000000-0000-0000-0000-000000000000", true);
671 configMember.addConfigurationOption("terrain_detail_2", ConfigurationOption.ConfigurationTypes.TYPE_LLUUID,
672 String.Empty, "00000000-0000-0000-0000-000000000000", true);
673 configMember.addConfigurationOption("terrain_detail_3", ConfigurationOption.ConfigurationTypes.TYPE_LLUUID,
674 String.Empty, "00000000-0000-0000-0000-000000000000", true);
675
676 configMember.addConfigurationOption("terrain_start_height_0",
677 ConfigurationOption.ConfigurationTypes.TYPE_FLOAT, String.Empty, "10.0", true);
678 configMember.addConfigurationOption("terrain_start_height_1",
679 ConfigurationOption.ConfigurationTypes.TYPE_FLOAT, String.Empty, "10.0", true);
680 configMember.addConfigurationOption("terrain_start_height_2",
681 ConfigurationOption.ConfigurationTypes.TYPE_FLOAT, String.Empty, "10.0", true);
682 configMember.addConfigurationOption("terrain_start_height_3",
683 ConfigurationOption.ConfigurationTypes.TYPE_FLOAT, String.Empty, "10.0", true);
684
685 configMember.addConfigurationOption("terrain_height_range_0",
686 ConfigurationOption.ConfigurationTypes.TYPE_FLOAT, String.Empty, "60.0", true);
687 configMember.addConfigurationOption("terrain_height_range_1",
688 ConfigurationOption.ConfigurationTypes.TYPE_FLOAT, String.Empty, "60.0", true);
689 configMember.addConfigurationOption("terrain_height_range_2",
690 ConfigurationOption.ConfigurationTypes.TYPE_FLOAT, String.Empty, "60.0", true);
691 configMember.addConfigurationOption("terrain_height_range_3",
692 ConfigurationOption.ConfigurationTypes.TYPE_FLOAT, String.Empty, "60.0", true);
693
694 configMember.addConfigurationOption("terrain_file", 471 configMember.addConfigurationOption("terrain_file",
695 ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY, String.Empty, 472 ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY, String.Empty,
696 "default.r32", true); 473 "default.r32", true);
@@ -751,58 +528,6 @@ namespace OpenSim.Framework
751 m_pricePerMeter = Convert.ToInt32(configuration_result); 528 m_pricePerMeter = Convert.ToInt32(configuration_result);
752 break; 529 break;
753 530
754 case "terrain_base_0":
755 m_terrainBase0 = (LLUUID) configuration_result;
756 break;
757 case "terrain_base_1":
758 m_terrainBase1 = (LLUUID) configuration_result;
759 break;
760 case "terrain_base_2":
761 m_terrainBase2 = (LLUUID) configuration_result;
762 break;
763 case "terrain_base_3":
764 m_terrainBase3 = (LLUUID) configuration_result;
765 break;
766
767 case "terrain_detail_0":
768 m_terrainDetail0 = (LLUUID) configuration_result;
769 break;
770 case "terrain_detail_1":
771 m_terrainDetail1 = (LLUUID) configuration_result;
772 break;
773 case "terrain_detail_2":
774 m_terrainDetail2 = (LLUUID) configuration_result;
775 break;
776 case "terrain_detail_3":
777 m_terrainDetail3 = (LLUUID) configuration_result;
778 break;
779
780 case "terrain_start_height_0":
781 m_terrainStartHeight0 = (float) configuration_result;
782 break;
783 case "terrain_start_height_1":
784 m_terrainStartHeight1 = (float) configuration_result;
785 break;
786 case "terrain_start_height_2":
787 m_terrainStartHeight2 = (float) configuration_result;
788 break;
789 case "terrain_start_height_3":
790 m_terrainStartHeight3 = (float) configuration_result;
791 break;
792
793 case "terrain_height_range_0":
794 m_terrainHeightRange0 = (float) configuration_result;
795 break;
796 case "terrain_height_range_1":
797 m_terrainHeightRange1 = (float) configuration_result;
798 break;
799 case "terrain_height_range_2":
800 m_terrainHeightRange2 = (float) configuration_result;
801 break;
802 case "terrain_height_range_3":
803 m_terrainHeightRange3 = (float) configuration_result;
804 break;
805
806 case "terrain_file": 531 case "terrain_file":
807 m_terrainFile = (string) configuration_result; 532 m_terrainFile = (string) configuration_result;
808 break; 533 break;