EstateSettings.cs 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. /*
  2. * Copyright (c) Contributors, http://www.openmetaverse.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 libsecondlife;
  29. namespace OpenSim.Framework.Types
  30. {
  31. public class EstateSettings
  32. {
  33. //Settings to this island
  34. public float billableFactor = (float)0.0;
  35. public uint estateID = 0;
  36. public uint parentEstateID = 0;
  37. public byte maxAgents = 40;
  38. public float objectBonusFactor = (float)1.0;
  39. public int redirectGridX = 0; //??
  40. public int redirectGridY = 0; //??
  41. public Simulator.RegionFlags regionFlags = Simulator.RegionFlags.None; //Booleam values of various region settings
  42. public Simulator.SimAccess simAccess = Simulator.SimAccess.Mature; //Is sim PG, Mature, etc? Mature by default.
  43. public float sunHour = 0;
  44. public float terrainRaiseLimit = 0;
  45. public float terrainLowerLimit = 0;
  46. public bool useFixedSun = false;
  47. public int pricePerMeter = 1;
  48. public ushort regionWaterHeight = 20;
  49. public bool regionAllowTerraform = true;
  50. // Region Information
  51. // Low resolution 'base' textures. No longer used.
  52. public LLUUID terrainBase0 = new LLUUID("b8d3965a-ad78-bf43-699b-bff8eca6c975"); // Default
  53. public LLUUID terrainBase1 = new LLUUID("abb783e6-3e93-26c0-248a-247666855da3"); // Default
  54. public LLUUID terrainBase2 = new LLUUID("179cdabd-398a-9b6b-1391-4dc333ba321f"); // Default
  55. public LLUUID terrainBase3 = new LLUUID("beb169c7-11ea-fff2-efe5-0f24dc881df2"); // Default
  56. // Higher resolution terrain textures
  57. public LLUUID terrainDetail0 = new LLUUID("00000000-0000-0000-0000-000000000000");
  58. public LLUUID terrainDetail1 = new LLUUID("00000000-0000-0000-0000-000000000000");
  59. public LLUUID terrainDetail2 = new LLUUID("00000000-0000-0000-0000-000000000000");
  60. public LLUUID terrainDetail3 = new LLUUID("00000000-0000-0000-0000-000000000000");
  61. // First quad - each point is bilinearly interpolated at each meter of terrain
  62. public float terrainStartHeight0 = 10.0f;
  63. public float terrainStartHeight1 = 10.0f;
  64. public float terrainStartHeight2 = 10.0f;
  65. public float terrainStartHeight3 = 10.0f;
  66. // Second quad - also bilinearly interpolated.
  67. // Terrain texturing is done that:
  68. // 0..3 (0 = base0, 3 = base3) = (terrain[x,y] - start[x,y]) / range[x,y]
  69. public float terrainHeightRange0 = 60.0f; //00
  70. public float terrainHeightRange1 = 60.0f; //01
  71. public float terrainHeightRange2 = 60.0f; //10
  72. public float terrainHeightRange3 = 60.0f; //11
  73. // Terrain Default (Must be in F32 Format!)
  74. public string terrainFile = "default.r32";
  75. public double terrainMultiplier = 60.0;
  76. public float waterHeight = (float)20.0;
  77. public LLUUID terrainImageID = LLUUID.Zero; // the assetID that is the current Map image for this region
  78. }
  79. }