llteleportflags.h 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /**
  2. * @file llteleportflags.h
  3. * @brief Teleport flags
  4. *
  5. * $LicenseInfo:firstyear=2002&license=viewergpl$
  6. *
  7. * Copyright (c) 2002-2009, Linden Research, Inc.
  8. *
  9. * Second Life Viewer Source Code
  10. * The source code in this file ("Source Code") is provided by Linden Lab
  11. * to you under the terms of the GNU General Public License, version 2.0
  12. * ("GPL"), unless you have obtained a separate licensing agreement
  13. * ("Other License"), formally executed by you and Linden Lab. Terms of
  14. * the GPL can be found in doc/GPL-license.txt in this distribution, or
  15. * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2
  16. *
  17. * There are special exceptions to the terms and conditions of the GPL as
  18. * it is applied to this Source Code. View the full text of the exception
  19. * in the file doc/FLOSS-exception.txt in this software distribution, or
  20. * online at
  21. * http://secondlifegrid.net/programs/open_source/licensing/flossexception
  22. *
  23. * By copying, modifying or distributing this software, you acknowledge
  24. * that you have read and understood your obligations described above,
  25. * and agree to abide by those obligations.
  26. *
  27. * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
  28. * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
  29. * COMPLETENESS OR PERFORMANCE.
  30. * $/LicenseInfo$
  31. */
  32. #ifndef LL_LLTELEPORTFLAGS_H
  33. #define LL_LLTELEPORTFLAGS_H
  34. constexpr U32 TELEPORT_FLAGS_DEFAULT = 0;
  35. constexpr U32 TELEPORT_FLAGS_SET_HOME_TO_TARGET = 1 << 0; // Newbie leaving prelude
  36. constexpr U32 TELEPORT_FLAGS_SET_LAST_TO_TARGET = 1 << 1;
  37. constexpr U32 TELEPORT_FLAGS_VIA_LURE = 1 << 2;
  38. constexpr U32 TELEPORT_FLAGS_VIA_LANDMARK = 1 << 3;
  39. constexpr U32 TELEPORT_FLAGS_VIA_LOCATION = 1 << 4;
  40. constexpr U32 TELEPORT_FLAGS_VIA_HOME = 1 << 5;
  41. constexpr U32 TELEPORT_FLAGS_VIA_TELEHUB = 1 << 6;
  42. constexpr U32 TELEPORT_FLAGS_VIA_LOGIN = 1 << 7;
  43. constexpr U32 TELEPORT_FLAGS_VIA_GODLIKE_LURE = 1 << 8;
  44. constexpr U32 TELEPORT_FLAGS_GODLIKE = 1 << 9;
  45. constexpr U32 TELEPORT_FLAGS_911 = 1 << 10;
  46. constexpr U32 TELEPORT_FLAGS_DISABLE_CANCEL = 1 << 11; // Used for llTeleportAgentHome()
  47. constexpr U32 TELEPORT_FLAGS_VIA_REGION_ID = 1 << 12;
  48. constexpr U32 TELEPORT_FLAGS_IS_FLYING = 1 << 13;
  49. constexpr U32 TELEPORT_FLAGS_SHOW_RESET_HOME = 1 << 14;
  50. // Used to force a redirect to some random location - used when kicking someone
  51. // from land.
  52. constexpr U32 TELEPORT_FLAGS_FORCE_REDIRECT = 1 << 15;
  53. constexpr U32 TELEPORT_FLAGS_MASK_VIA = TELEPORT_FLAGS_VIA_LURE
  54. | TELEPORT_FLAGS_VIA_LANDMARK
  55. | TELEPORT_FLAGS_VIA_LOCATION
  56. | TELEPORT_FLAGS_VIA_HOME
  57. | TELEPORT_FLAGS_VIA_TELEHUB
  58. | TELEPORT_FLAGS_VIA_LOGIN
  59. | TELEPORT_FLAGS_VIA_REGION_ID;
  60. constexpr U32 LURE_FLAG_NORMAL_LURE = 1 << 0;
  61. constexpr U32 LURE_FLAG_GODLIKE_LURE = 1 << 1;
  62. constexpr U32 LURE_FLAG_GODLIKE_PURSUIT = 1 << 2;
  63. #endif