diff options
as per the "Filesystem cleanup for OpenSim repository" mailing list thread. Have flattened the OpenSim.Framework project/namespace. The problem is that the namespace is still wrong as its "OpenSim.Framework" while the directory is "OpenSim\Framework\General" , so we need to decide if we change the directory or correct the namespace.
Note this has lead to a big flat project, but I think a lot of the files we most likely don't even use any longer. And others belong in other projects/namespaces anyway.
Diffstat (limited to 'OpenSim/Framework/General/Types/EstateSettings.cs')
-rw-r--r-- | OpenSim/Framework/General/Types/EstateSettings.cs | 738 |
1 files changed, 0 insertions, 738 deletions
diff --git a/OpenSim/Framework/General/Types/EstateSettings.cs b/OpenSim/Framework/General/Types/EstateSettings.cs deleted file mode 100644 index 2675e52..0000000 --- a/OpenSim/Framework/General/Types/EstateSettings.cs +++ /dev/null | |||
@@ -1,738 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (c) Contributors, http://opensimulator.org/ | ||
3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. | ||
4 | * | ||
5 | * Redistribution and use in source and binary forms, with or without | ||
6 | * modification, are permitted provided that the following conditions are met: | ||
7 | * * Redistributions of source code must retain the above copyright | ||
8 | * notice, this list of conditions and the following disclaimer. | ||
9 | * * Redistributions in binary form must reproduce the above copyright | ||
10 | * notice, this list of conditions and the following disclaimer in the | ||
11 | * documentation and/or other materials provided with the distribution. | ||
12 | * * Neither the name of the OpenSim Project nor the | ||
13 | * names of its contributors may be used to endorse or promote products | ||
14 | * derived from this software without specific prior written permission. | ||
15 | * | ||
16 | * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS AND ANY | ||
17 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
18 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
19 | * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY | ||
20 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
21 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
22 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | ||
23 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
26 | * | ||
27 | */ | ||
28 | using System.IO; | ||
29 | using libsecondlife; | ||
30 | using OpenSim.Framework.Configuration; | ||
31 | using OpenSim.Framework.Utilities; | ||
32 | using System.Globalization; | ||
33 | |||
34 | namespace OpenSim.Framework.Types | ||
35 | { | ||
36 | public class EstateSettings | ||
37 | { | ||
38 | |||
39 | //Settings to this island | ||
40 | private float m_billableFactor; | ||
41 | public float billableFactor | ||
42 | { | ||
43 | get | ||
44 | { | ||
45 | return m_billableFactor; | ||
46 | } | ||
47 | set | ||
48 | { | ||
49 | m_billableFactor = value; | ||
50 | configMember.forceSetConfigurationOption("billable_factor", m_billableFactor.ToString()); | ||
51 | } | ||
52 | } | ||
53 | |||
54 | |||
55 | private uint m_estateID; | ||
56 | public uint estateID | ||
57 | { | ||
58 | get | ||
59 | { | ||
60 | return m_estateID; | ||
61 | } | ||
62 | set | ||
63 | { | ||
64 | m_estateID = value; | ||
65 | configMember.forceSetConfigurationOption("estate_id", m_estateID.ToString()); | ||
66 | } | ||
67 | } | ||
68 | |||
69 | |||
70 | private uint m_parentEstateID; | ||
71 | public uint parentEstateID | ||
72 | { | ||
73 | get | ||
74 | { | ||
75 | return m_parentEstateID; | ||
76 | } | ||
77 | set | ||
78 | { | ||
79 | m_parentEstateID = value; | ||
80 | configMember.forceSetConfigurationOption("parent_estate_id", m_parentEstateID.ToString()); | ||
81 | } | ||
82 | } | ||
83 | |||
84 | private byte m_maxAgents; | ||
85 | public byte maxAgents | ||
86 | { | ||
87 | get | ||
88 | { | ||
89 | return m_maxAgents; | ||
90 | } | ||
91 | set | ||
92 | { | ||
93 | m_maxAgents = value; | ||
94 | configMember.forceSetConfigurationOption("max_agents", m_maxAgents.ToString()); | ||
95 | } | ||
96 | } | ||
97 | |||
98 | private float m_objectBonusFactor; | ||
99 | public float objectBonusFactor | ||
100 | { | ||
101 | get | ||
102 | { | ||
103 | return m_objectBonusFactor; | ||
104 | } | ||
105 | set | ||
106 | { | ||
107 | m_objectBonusFactor = value; | ||
108 | configMember.forceSetConfigurationOption("object_bonus_factor", m_objectBonusFactor.ToString()); | ||
109 | } | ||
110 | } | ||
111 | |||
112 | private int m_redirectGridX; | ||
113 | public int redirectGridX | ||
114 | { | ||
115 | get | ||
116 | { | ||
117 | return m_redirectGridX; | ||
118 | } | ||
119 | set | ||
120 | { | ||
121 | m_redirectGridX = value; | ||
122 | configMember.forceSetConfigurationOption("redirect_grid_x", m_redirectGridX.ToString()); | ||
123 | } | ||
124 | } | ||
125 | |||
126 | private int m_redirectGridY; | ||
127 | public int redirectGridY | ||
128 | { | ||
129 | get | ||
130 | { | ||
131 | return m_redirectGridY; | ||
132 | } | ||
133 | set | ||
134 | { | ||
135 | m_redirectGridY = value; | ||
136 | configMember.forceSetConfigurationOption("redirect_grid_y", m_redirectGridY.ToString()); | ||
137 | } | ||
138 | } | ||
139 | |||
140 | private Simulator.RegionFlags m_regionFlags; | ||
141 | public Simulator.RegionFlags regionFlags | ||
142 | { | ||
143 | get | ||
144 | { | ||
145 | return m_regionFlags; | ||
146 | } | ||
147 | set | ||
148 | { | ||
149 | m_regionFlags = value; | ||
150 | configMember.forceSetConfigurationOption("region_flags", m_regionFlags.ToString()); | ||
151 | } | ||
152 | } | ||
153 | |||
154 | |||
155 | private Simulator.SimAccess m_simAccess; | ||
156 | public Simulator.SimAccess simAccess | ||
157 | { | ||
158 | get | ||
159 | { | ||
160 | return m_simAccess; | ||
161 | } | ||
162 | set | ||
163 | { | ||
164 | m_simAccess = value; | ||
165 | configMember.forceSetConfigurationOption("sim_access", m_simAccess.ToString()); | ||
166 | } | ||
167 | } | ||
168 | |||
169 | private float m_sunHour; | ||
170 | public float sunHour | ||
171 | { | ||
172 | get | ||
173 | { | ||
174 | return m_sunHour; | ||
175 | } | ||
176 | set | ||
177 | { | ||
178 | m_sunHour = value; | ||
179 | configMember.forceSetConfigurationOption("sun_hour", m_sunHour.ToString()); | ||
180 | } | ||
181 | } | ||
182 | |||
183 | private float m_terrainRaiseLimit; | ||
184 | public float terrainRaiseLimit | ||
185 | { | ||
186 | get | ||
187 | { | ||
188 | return m_terrainRaiseLimit; | ||
189 | } | ||
190 | set | ||
191 | { | ||
192 | m_terrainRaiseLimit = value; | ||
193 | configMember.forceSetConfigurationOption("terrain_raise_limit", m_terrainRaiseLimit.ToString()); | ||
194 | } | ||
195 | } | ||
196 | |||
197 | private float m_terrainLowerLimit; | ||
198 | public float terrainLowerLimit | ||
199 | { | ||
200 | get | ||
201 | { | ||
202 | return m_terrainLowerLimit; | ||
203 | } | ||
204 | set | ||
205 | { | ||
206 | m_terrainLowerLimit = value; | ||
207 | configMember.forceSetConfigurationOption("terrain_lower_limit", m_terrainLowerLimit.ToString()); | ||
208 | } | ||
209 | } | ||
210 | |||
211 | private bool m_useFixedSun; | ||
212 | public bool useFixedSun | ||
213 | { | ||
214 | get | ||
215 | { | ||
216 | return m_useFixedSun; | ||
217 | } | ||
218 | set | ||
219 | { | ||
220 | m_useFixedSun = value; | ||
221 | configMember.forceSetConfigurationOption("use_fixed_sun", m_useFixedSun.ToString()); | ||
222 | } | ||
223 | } | ||
224 | |||
225 | |||
226 | private int m_pricePerMeter; | ||
227 | public int pricePerMeter | ||
228 | { | ||
229 | get | ||
230 | { | ||
231 | return m_pricePerMeter; | ||
232 | } | ||
233 | set | ||
234 | { | ||
235 | m_pricePerMeter = value; | ||
236 | configMember.forceSetConfigurationOption("price_per_meter", m_pricePerMeter.ToString()); | ||
237 | } | ||
238 | } | ||
239 | |||
240 | |||
241 | private ushort m_regionWaterHeight; | ||
242 | public ushort regionWaterHeight | ||
243 | { | ||
244 | get | ||
245 | { | ||
246 | return m_regionWaterHeight; | ||
247 | } | ||
248 | set | ||
249 | { | ||
250 | m_regionWaterHeight = value; | ||
251 | configMember.forceSetConfigurationOption("region_water_height", m_regionWaterHeight.ToString()); | ||
252 | } | ||
253 | } | ||
254 | |||
255 | |||
256 | private bool m_regionAllowTerraform; | ||
257 | public bool regionAllowTerraform | ||
258 | { | ||
259 | get | ||
260 | { | ||
261 | return m_regionAllowTerraform; | ||
262 | } | ||
263 | set | ||
264 | { | ||
265 | m_regionAllowTerraform = value; | ||
266 | configMember.forceSetConfigurationOption("region_allow_terraform", m_regionAllowTerraform.ToString()); | ||
267 | } | ||
268 | } | ||
269 | |||
270 | |||
271 | // Region Information | ||
272 | // Low resolution 'base' textures. No longer used. | ||
273 | private LLUUID m_terrainBase0; | ||
274 | public LLUUID terrainBase0 | ||
275 | { | ||
276 | get | ||
277 | { | ||
278 | return m_terrainBase0; | ||
279 | } | ||
280 | set | ||
281 | { | ||
282 | m_terrainBase0 = value; | ||
283 | configMember.forceSetConfigurationOption("terrain_base_0", m_terrainBase0.ToString()); | ||
284 | } | ||
285 | } | ||
286 | |||
287 | private LLUUID m_terrainBase1; | ||
288 | public LLUUID terrainBase1 | ||
289 | { | ||
290 | get | ||
291 | { | ||
292 | return m_terrainBase1; | ||
293 | } | ||
294 | set | ||
295 | { | ||
296 | m_terrainBase1 = value; | ||
297 | configMember.forceSetConfigurationOption("terrain_base_1", m_terrainBase1.ToString()); | ||
298 | } | ||
299 | } | ||
300 | |||
301 | private LLUUID m_terrainBase2; | ||
302 | public LLUUID terrainBase2 | ||
303 | { | ||
304 | get | ||
305 | { | ||
306 | return m_terrainBase2; | ||
307 | } | ||
308 | set | ||
309 | { | ||
310 | m_terrainBase2 = value; | ||
311 | configMember.forceSetConfigurationOption("terrain_base_2", m_terrainBase2.ToString()); | ||
312 | } | ||
313 | } | ||
314 | |||
315 | private LLUUID m_terrainBase3; | ||
316 | public LLUUID terrainBase3 | ||
317 | { | ||
318 | get | ||
319 | { | ||
320 | return m_terrainBase3; | ||
321 | } | ||
322 | set | ||
323 | { | ||
324 | m_terrainBase3 = value; | ||
325 | configMember.forceSetConfigurationOption("terrain_base_3", m_terrainBase3.ToString()); | ||
326 | } | ||
327 | } | ||
328 | |||
329 | |||
330 | // Higher resolution terrain textures | ||
331 | private LLUUID m_terrainDetail0; | ||
332 | public LLUUID terrainDetail0 | ||
333 | { | ||
334 | get | ||
335 | { | ||
336 | return m_terrainDetail0; | ||
337 | } | ||
338 | set | ||
339 | { | ||
340 | |||
341 | m_terrainDetail0 = value; | ||
342 | configMember.forceSetConfigurationOption("terrain_detail_0", m_terrainDetail0.ToString()); | ||
343 | } | ||
344 | } | ||
345 | |||
346 | private LLUUID m_terrainDetail1; | ||
347 | public LLUUID terrainDetail1 | ||
348 | { | ||
349 | get | ||
350 | { | ||
351 | return m_terrainDetail1; | ||
352 | } | ||
353 | set | ||
354 | { | ||
355 | m_terrainDetail1 = value; | ||
356 | configMember.forceSetConfigurationOption("terrain_detail_1", m_terrainDetail1.ToString()); | ||
357 | } | ||
358 | } | ||
359 | private LLUUID m_terrainDetail2; | ||
360 | public LLUUID terrainDetail2 | ||
361 | { | ||
362 | get | ||
363 | { | ||
364 | return m_terrainDetail2; | ||
365 | } | ||
366 | set | ||
367 | { | ||
368 | m_terrainDetail2 = value; | ||
369 | configMember.forceSetConfigurationOption("terrain_detail_2", m_terrainDetail2.ToString()); | ||
370 | } | ||
371 | } | ||
372 | private LLUUID m_terrainDetail3; | ||
373 | public LLUUID terrainDetail3 | ||
374 | { | ||
375 | get | ||
376 | { | ||
377 | return m_terrainDetail3; | ||
378 | } | ||
379 | set | ||
380 | { | ||
381 | m_terrainDetail3 = value; | ||
382 | configMember.forceSetConfigurationOption("terrain_detail_3", m_terrainDetail3.ToString()); | ||
383 | } | ||
384 | } | ||
385 | |||
386 | // First quad - each point is bilinearly interpolated at each meter of terrain | ||
387 | private float m_terrainStartHeight0; | ||
388 | public float terrainStartHeight0 | ||
389 | { | ||
390 | get | ||
391 | { | ||
392 | return m_terrainStartHeight0; | ||
393 | } | ||
394 | set | ||
395 | { | ||
396 | m_terrainStartHeight0 = value; | ||
397 | configMember.forceSetConfigurationOption("terrain_start_height_0", m_terrainStartHeight0.ToString()); | ||
398 | } | ||
399 | } | ||
400 | |||
401 | |||
402 | private float m_terrainStartHeight1; | ||
403 | public float terrainStartHeight1 | ||
404 | { | ||
405 | get | ||
406 | { | ||
407 | return m_terrainStartHeight1; | ||
408 | } | ||
409 | set | ||
410 | { | ||
411 | m_terrainStartHeight1 = value; | ||
412 | configMember.forceSetConfigurationOption("terrain_start_height_1", m_terrainStartHeight1.ToString()); | ||
413 | } | ||
414 | } | ||
415 | |||
416 | private float m_terrainStartHeight2; | ||
417 | public float terrainStartHeight2 | ||
418 | { | ||
419 | get | ||
420 | { | ||
421 | return m_terrainStartHeight2; | ||
422 | } | ||
423 | set | ||
424 | { | ||
425 | m_terrainStartHeight2 = value; | ||
426 | configMember.forceSetConfigurationOption("terrain_start_height_2", m_terrainStartHeight2.ToString()); | ||
427 | } | ||
428 | } | ||
429 | |||
430 | private float m_terrainStartHeight3; | ||
431 | public float terrainStartHeight3 | ||
432 | { | ||
433 | get | ||
434 | { | ||
435 | return m_terrainStartHeight3; | ||
436 | } | ||
437 | set | ||
438 | { | ||
439 | m_terrainStartHeight3 = value; | ||
440 | configMember.forceSetConfigurationOption("terrain_start_height_3", m_terrainStartHeight3.ToString()); | ||
441 | } | ||
442 | } | ||
443 | // Second quad - also bilinearly interpolated. | ||
444 | // Terrain texturing is done that: | ||
445 | // 0..3 (0 = base0, 3 = base3) = (terrain[x,y] - start[x,y]) / range[x,y] | ||
446 | private float m_terrainHeightRange0; | ||
447 | public float terrainHeightRange0 | ||
448 | { | ||
449 | get | ||
450 | { | ||
451 | return m_terrainHeightRange0; | ||
452 | } | ||
453 | set | ||
454 | { | ||
455 | m_terrainHeightRange0 = value; | ||
456 | configMember.forceSetConfigurationOption("terrain_height_range_0", m_terrainHeightRange0.ToString()); | ||
457 | } | ||
458 | } | ||
459 | |||
460 | private float m_terrainHeightRange1; | ||
461 | public float terrainHeightRange1 | ||
462 | { | ||
463 | get | ||
464 | { | ||
465 | return m_terrainHeightRange1; | ||
466 | } | ||
467 | set | ||
468 | { | ||
469 | m_terrainHeightRange1 = value; | ||
470 | configMember.forceSetConfigurationOption("terrain_height_range_1", m_terrainHeightRange1.ToString()); | ||
471 | } | ||
472 | } | ||
473 | |||
474 | private float m_terrainHeightRange2; | ||
475 | public float terrainHeightRange2 | ||
476 | { | ||
477 | get | ||
478 | { | ||
479 | return m_terrainHeightRange2; | ||
480 | } | ||
481 | set | ||
482 | { | ||
483 | m_terrainHeightRange2 = value; | ||
484 | configMember.forceSetConfigurationOption("terrain_height_range_2", m_terrainHeightRange2.ToString()); | ||
485 | } | ||
486 | } | ||
487 | |||
488 | private float m_terrainHeightRange3; | ||
489 | public float terrainHeightRange3 | ||
490 | { | ||
491 | get | ||
492 | { | ||
493 | return m_terrainHeightRange3; | ||
494 | } | ||
495 | set | ||
496 | { | ||
497 | m_terrainHeightRange3 = value; | ||
498 | configMember.forceSetConfigurationOption("terrain_height_range_3", m_terrainHeightRange3.ToString()); | ||
499 | } | ||
500 | } | ||
501 | // Terrain Default (Must be in F32 Format!) | ||
502 | private string m_terrainFile; | ||
503 | public string terrainFile | ||
504 | { | ||
505 | get | ||
506 | { | ||
507 | return m_terrainFile; | ||
508 | } | ||
509 | set | ||
510 | { | ||
511 | m_terrainFile = value; | ||
512 | configMember.forceSetConfigurationOption("terrain_file", m_terrainFile.ToString()); | ||
513 | } | ||
514 | } | ||
515 | |||
516 | private double m_terrainMultiplier; | ||
517 | public double terrainMultiplier | ||
518 | { | ||
519 | get | ||
520 | { | ||
521 | return m_terrainMultiplier; | ||
522 | } | ||
523 | set | ||
524 | { | ||
525 | m_terrainMultiplier = value; | ||
526 | configMember.forceSetConfigurationOption("terrain_multiplier", m_terrainMultiplier.ToString()); | ||
527 | } | ||
528 | } | ||
529 | |||
530 | private float m_waterHeight; | ||
531 | public float waterHeight | ||
532 | { | ||
533 | get | ||
534 | { | ||
535 | return m_waterHeight; | ||
536 | } | ||
537 | set | ||
538 | { | ||
539 | m_waterHeight = value; | ||
540 | configMember.forceSetConfigurationOption("water_height", m_waterHeight.ToString()); | ||
541 | } | ||
542 | } | ||
543 | |||
544 | private LLUUID m_terrainImageID; | ||
545 | public LLUUID terrainImageID | ||
546 | { | ||
547 | get | ||
548 | { | ||
549 | return m_terrainImageID; | ||
550 | } | ||
551 | set | ||
552 | { | ||
553 | m_terrainImageID = value; | ||
554 | configMember.forceSetConfigurationOption("terrain_image_id", m_terrainImageID.ToString()); | ||
555 | } | ||
556 | } | ||
557 | private ConfigurationMember configMember; | ||
558 | public EstateSettings() | ||
559 | { | ||
560 | // Temporary hack to prevent multiple loadings. | ||
561 | if (configMember == null) | ||
562 | { | ||
563 | configMember = new ConfigurationMember(Path.Combine(Util.configDir(), "estate_settings.xml"), "ESTATE SETTINGS", this.loadConfigurationOptions, this.handleIncomingConfiguration); | ||
564 | configMember.performConfigurationRetrieve(); | ||
565 | } | ||
566 | } | ||
567 | |||
568 | public void loadConfigurationOptions() | ||
569 | { | ||
570 | configMember.addConfigurationOption("billable_factor", ConfigurationOption.ConfigurationTypes.TYPE_FLOAT, "","0.0",true); | ||
571 | configMember.addConfigurationOption("estate_id", ConfigurationOption.ConfigurationTypes.TYPE_UINT32, "","0",true); | ||
572 | configMember.addConfigurationOption("parent_estate_id", ConfigurationOption.ConfigurationTypes.TYPE_UINT32, "", "0", true); | ||
573 | configMember.addConfigurationOption("max_agents", ConfigurationOption.ConfigurationTypes.TYPE_BYTE, "", "40", true); | ||
574 | |||
575 | configMember.addConfigurationOption("object_bonus_factor", ConfigurationOption.ConfigurationTypes.TYPE_FLOAT, "", "1.0", true); | ||
576 | configMember.addConfigurationOption("redirect_grid_x", ConfigurationOption.ConfigurationTypes.TYPE_INT32, "", "0", true); | ||
577 | configMember.addConfigurationOption("redirect_grid_y", ConfigurationOption.ConfigurationTypes.TYPE_INT32, "", "0", true); | ||
578 | configMember.addConfigurationOption("region_flags", ConfigurationOption.ConfigurationTypes.TYPE_UINT32, "", "0", true); | ||
579 | configMember.addConfigurationOption("sim_access", ConfigurationOption.ConfigurationTypes.TYPE_BYTE, "", "21", true); | ||
580 | configMember.addConfigurationOption("sun_hour", ConfigurationOption.ConfigurationTypes.TYPE_FLOAT, "", "0", true); | ||
581 | configMember.addConfigurationOption("terrain_raise_limit", ConfigurationOption.ConfigurationTypes.TYPE_FLOAT, "", "0", true); | ||
582 | configMember.addConfigurationOption("terrain_lower_limit", ConfigurationOption.ConfigurationTypes.TYPE_FLOAT, "", "0", true); | ||
583 | configMember.addConfigurationOption("use_fixed_sun", ConfigurationOption.ConfigurationTypes.TYPE_BOOLEAN, "", "false", true); | ||
584 | configMember.addConfigurationOption("price_per_meter", ConfigurationOption.ConfigurationTypes.TYPE_UINT32, "", "1", true); | ||
585 | configMember.addConfigurationOption("region_water_height", ConfigurationOption.ConfigurationTypes.TYPE_UINT16, "", "20", true); | ||
586 | configMember.addConfigurationOption("region_allow_terraform", ConfigurationOption.ConfigurationTypes.TYPE_BOOLEAN, "", "true", true); | ||
587 | |||
588 | configMember.addConfigurationOption("terrain_base_0", ConfigurationOption.ConfigurationTypes.TYPE_LLUUID, "", "b8d3965a-ad78-bf43-699b-bff8eca6c975", true); | ||
589 | configMember.addConfigurationOption("terrain_base_1", ConfigurationOption.ConfigurationTypes.TYPE_LLUUID, "", "abb783e6-3e93-26c0-248a-247666855da3", true); | ||
590 | configMember.addConfigurationOption("terrain_base_2", ConfigurationOption.ConfigurationTypes.TYPE_LLUUID, "", "179cdabd-398a-9b6b-1391-4dc333ba321f", true); | ||
591 | configMember.addConfigurationOption("terrain_base_3", ConfigurationOption.ConfigurationTypes.TYPE_LLUUID, "", "beb169c7-11ea-fff2-efe5-0f24dc881df2", true); | ||
592 | |||
593 | configMember.addConfigurationOption("terrain_detail_0", ConfigurationOption.ConfigurationTypes.TYPE_LLUUID, "", "00000000-0000-0000-0000-000000000000", true); | ||
594 | configMember.addConfigurationOption("terrain_detail_1", ConfigurationOption.ConfigurationTypes.TYPE_LLUUID, "", "00000000-0000-0000-0000-000000000000", true); | ||
595 | configMember.addConfigurationOption("terrain_detail_2", ConfigurationOption.ConfigurationTypes.TYPE_LLUUID, "", "00000000-0000-0000-0000-000000000000", true); | ||
596 | configMember.addConfigurationOption("terrain_detail_3", ConfigurationOption.ConfigurationTypes.TYPE_LLUUID, "", "00000000-0000-0000-0000-000000000000", true); | ||
597 | |||
598 | configMember.addConfigurationOption("terrain_start_height_0", ConfigurationOption.ConfigurationTypes.TYPE_FLOAT, "", "10.0", true); | ||
599 | configMember.addConfigurationOption("terrain_start_height_1", ConfigurationOption.ConfigurationTypes.TYPE_FLOAT, "", "10.0", true); | ||
600 | configMember.addConfigurationOption("terrain_start_height_2", ConfigurationOption.ConfigurationTypes.TYPE_FLOAT, "", "10.0", true); | ||
601 | configMember.addConfigurationOption("terrain_start_height_3", ConfigurationOption.ConfigurationTypes.TYPE_FLOAT, "", "10.0", true); | ||
602 | |||
603 | configMember.addConfigurationOption("terrain_height_range_0", ConfigurationOption.ConfigurationTypes.TYPE_FLOAT, "", "60.0", true); | ||
604 | configMember.addConfigurationOption("terrain_height_range_1", ConfigurationOption.ConfigurationTypes.TYPE_FLOAT, "", "60.0", true); | ||
605 | configMember.addConfigurationOption("terrain_height_range_2", ConfigurationOption.ConfigurationTypes.TYPE_FLOAT, "", "60.0", true); | ||
606 | configMember.addConfigurationOption("terrain_height_range_3", ConfigurationOption.ConfigurationTypes.TYPE_FLOAT, "", "60.0", true); | ||
607 | |||
608 | configMember.addConfigurationOption("terrain_file", ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY, "", "default.r32", true); | ||
609 | configMember.addConfigurationOption("terrain_multiplier", ConfigurationOption.ConfigurationTypes.TYPE_FLOAT, "", "60.0", true); | ||
610 | configMember.addConfigurationOption("water_height", ConfigurationOption.ConfigurationTypes.TYPE_DOUBLE, "", "20.0", true); | ||
611 | configMember.addConfigurationOption("terrain_image_id", ConfigurationOption.ConfigurationTypes.TYPE_LLUUID, "", "00000000-0000-0000-0000-000000000000", true); | ||
612 | } | ||
613 | |||
614 | public bool handleIncomingConfiguration(string configuration_key, object configuration_result) | ||
615 | { | ||
616 | switch (configuration_key) | ||
617 | { | ||
618 | case "billable_factor": | ||
619 | this.m_billableFactor = (float)configuration_result; | ||
620 | break; | ||
621 | case "estate_id": | ||
622 | this.m_estateID = (uint)configuration_result; | ||
623 | break; | ||
624 | case "parent_estate_id": | ||
625 | this.m_parentEstateID = (uint)configuration_result; | ||
626 | break; | ||
627 | case "max_agents": | ||
628 | this.m_maxAgents = (byte)configuration_result; | ||
629 | break; | ||
630 | |||
631 | case "object_bonus_factor": | ||
632 | this.m_objectBonusFactor = (float)configuration_result; | ||
633 | break; | ||
634 | case "redirect_grid_x": | ||
635 | this.m_redirectGridX = (int)configuration_result; | ||
636 | break; | ||
637 | case "redirect_grid_y": | ||
638 | this.m_redirectGridY = (int)configuration_result; | ||
639 | break; | ||
640 | case "region_flags": | ||
641 | this.m_regionFlags = (Simulator.RegionFlags)((uint)configuration_result); | ||
642 | break; | ||
643 | case "sim_access": | ||
644 | this.m_simAccess = (Simulator.SimAccess)((byte)configuration_result); | ||
645 | break; | ||
646 | case "sun_hour": | ||
647 | this.m_sunHour = (float)configuration_result; | ||
648 | break; | ||
649 | case "terrain_raise_limit": | ||
650 | this.m_terrainRaiseLimit = (float)configuration_result; | ||
651 | break; | ||
652 | case "terrain_lower_limit": | ||
653 | this.m_terrainLowerLimit = (float)configuration_result; | ||
654 | break; | ||
655 | case "use_fixed_sun": | ||
656 | this.m_useFixedSun = (bool)configuration_result; | ||
657 | break; | ||
658 | case "price_per_meter": | ||
659 | this.m_pricePerMeter = System.Convert.ToInt32(configuration_result); | ||
660 | break; | ||
661 | case "region_water_height": | ||
662 | this.m_regionWaterHeight = (ushort)configuration_result; | ||
663 | break; | ||
664 | case "region_allow_terraform": | ||
665 | this.m_regionAllowTerraform = (bool)configuration_result; | ||
666 | break; | ||
667 | |||
668 | case "terrain_base_0": | ||
669 | this.m_terrainBase0 = (LLUUID)configuration_result; | ||
670 | break; | ||
671 | case "terrain_base_1": | ||
672 | this.m_terrainBase1 = (LLUUID)configuration_result; | ||
673 | break; | ||
674 | case "terrain_base_2": | ||
675 | this.m_terrainBase2 = (LLUUID)configuration_result; | ||
676 | break; | ||
677 | case "terrain_base_3": | ||
678 | this.m_terrainBase3 = (LLUUID)configuration_result; | ||
679 | break; | ||
680 | |||
681 | case "terrain_detail_0": | ||
682 | this.m_terrainDetail0 = (LLUUID)configuration_result; | ||
683 | break; | ||
684 | case "terrain_detail_1": | ||
685 | this.m_terrainDetail1 = (LLUUID)configuration_result; | ||
686 | break; | ||
687 | case "terrain_detail_2": | ||
688 | this.m_terrainDetail2 = (LLUUID)configuration_result; | ||
689 | break; | ||
690 | case "terrain_detail_3": | ||
691 | this.m_terrainDetail3 = (LLUUID)configuration_result; | ||
692 | break; | ||
693 | |||
694 | case "terrain_start_height_0": | ||
695 | this.m_terrainStartHeight0 = (float)configuration_result; | ||
696 | break; | ||
697 | case "terrain_start_height_1": | ||
698 | this.m_terrainStartHeight1 = (float)configuration_result; | ||
699 | break; | ||
700 | case "terrain_start_height_2": | ||
701 | this.m_terrainStartHeight2 = (float)configuration_result; | ||
702 | break; | ||
703 | case "terrain_start_height_3": | ||
704 | this.m_terrainStartHeight3 = (float)configuration_result; | ||
705 | break; | ||
706 | |||
707 | case "terrain_height_range_0": | ||
708 | this.m_terrainHeightRange0 = (float)configuration_result; | ||
709 | break; | ||
710 | case "terrain_height_range_1": | ||
711 | this.m_terrainHeightRange1 = (float)configuration_result; | ||
712 | break; | ||
713 | case "terrain_height_range_2": | ||
714 | this.m_terrainHeightRange2 = (float)configuration_result; | ||
715 | break; | ||
716 | case "terrain_height_range_3": | ||
717 | this.m_terrainHeightRange3 = (float)configuration_result; | ||
718 | break; | ||
719 | |||
720 | case "terrain_file": | ||
721 | this.m_terrainFile = (string)configuration_result; | ||
722 | break; | ||
723 | case "terrain_multiplier": | ||
724 | this.m_terrainMultiplier = System.Convert.ToDouble(configuration_result); | ||
725 | break; | ||
726 | case "water_height": | ||
727 | double tmpVal = (double) configuration_result; | ||
728 | this.m_waterHeight = (float) tmpVal; | ||
729 | break; | ||
730 | case "terrain_image_id": | ||
731 | this.m_terrainImageID = (LLUUID)configuration_result; | ||
732 | break; | ||
733 | } | ||
734 | |||
735 | return true; | ||
736 | } | ||
737 | } | ||
738 | } | ||