Constants.cs 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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 OpenSimulator 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. using System;
  28. namespace OpenSim.Framework
  29. {
  30. public class Constants
  31. {
  32. public const uint RegionSize = 256;
  33. public const byte TerrainPatchSize = 16;
  34. public const string DefaultTexture = "89556747-24cb-43ed-920b-47caed15465f";
  35. public enum EstateAccessCodex : uint
  36. {
  37. AccessOptions = 1,
  38. AllowedGroups = 2,
  39. EstateBans = 4,
  40. EstateManagers = 8
  41. }
  42. [Flags]public enum TeleportFlags : uint
  43. {
  44. /// <summary>No flags set, or teleport failed</summary>
  45. Default = 0,
  46. /// <summary>Set when newbie leaves help island for first time</summary>
  47. SetHomeToTarget = 1 << 0,
  48. /// <summary></summary>
  49. SetLastToTarget = 1 << 1,
  50. /// <summary>Via Lure</summary>
  51. ViaLure = 1 << 2,
  52. /// <summary>Via Landmark</summary>
  53. ViaLandmark = 1 << 3,
  54. /// <summary>Via Location</summary>
  55. ViaLocation = 1 << 4,
  56. /// <summary>Via Home</summary>
  57. ViaHome = 1 << 5,
  58. /// <summary>Via Telehub</summary>
  59. ViaTelehub = 1 << 6,
  60. /// <summary>Via Login</summary>
  61. ViaLogin = 1 << 7,
  62. /// <summary>Linden Summoned</summary>
  63. ViaGodlikeLure = 1 << 8,
  64. /// <summary>Linden Forced me</summary>
  65. Godlike = 1 << 9,
  66. /// <summary></summary>
  67. NineOneOne = 1 << 10,
  68. /// <summary>Agent Teleported Home via Script</summary>
  69. DisableCancel = 1 << 11,
  70. /// <summary></summary>
  71. ViaRegionID = 1 << 12,
  72. /// <summary></summary>
  73. IsFlying = 1 << 13,
  74. /// <summary></summary>
  75. ResetHome = 1 << 14,
  76. /// <summary>forced to new location for example when avatar is banned or ejected</summary>
  77. ForceRedirect = 1 << 15,
  78. /// <summary>Teleport Finished via a Lure</summary>
  79. FinishedViaLure = 1 << 26,
  80. /// <summary>Finished, Sim Changed</summary>
  81. FinishedViaNewSim = 1 << 28,
  82. /// <summary>Finished, Same Sim</summary>
  83. FinishedViaSameSim = 1 << 29
  84. }
  85. }
  86. }