/indra/llmessage/llteleportflags.h

https://bitbucket.org/lindenlab/viewer-beta/ · C++ Header · 63 lines · 30 code · 8 blank · 25 comment · 0 complexity · 0e7f22cc0e4655f6034d2995feb372ac MD5 · raw file

  1. /**
  2. * @file llteleportflags.h
  3. * @brief Teleport flags
  4. *
  5. * $LicenseInfo:firstyear=2002&license=viewerlgpl$
  6. * Second Life Viewer Source Code
  7. * Copyright (C) 2010, Linden Research, Inc.
  8. *
  9. * This library is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU Lesser General Public
  11. * License as published by the Free Software Foundation;
  12. * version 2.1 of the License only.
  13. *
  14. * This library is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  17. * Lesser General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU Lesser General Public
  20. * License along with this library; if not, write to the Free Software
  21. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  22. *
  23. * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
  24. * $/LicenseInfo$
  25. */
  26. #ifndef LL_LLTELEPORTFLAGS_H
  27. #define LL_LLTELEPORTFLAGS_H
  28. const U32 TELEPORT_FLAGS_DEFAULT = 0;
  29. const U32 TELEPORT_FLAGS_SET_HOME_TO_TARGET = 1 << 0; // newbie leaving prelude
  30. const U32 TELEPORT_FLAGS_SET_LAST_TO_TARGET = 1 << 1;
  31. const U32 TELEPORT_FLAGS_VIA_LURE = 1 << 2;
  32. const U32 TELEPORT_FLAGS_VIA_LANDMARK = 1 << 3;
  33. const U32 TELEPORT_FLAGS_VIA_LOCATION = 1 << 4;
  34. const U32 TELEPORT_FLAGS_VIA_HOME = 1 << 5;
  35. const U32 TELEPORT_FLAGS_VIA_TELEHUB = 1 << 6;
  36. const U32 TELEPORT_FLAGS_VIA_LOGIN = 1 << 7;
  37. const U32 TELEPORT_FLAGS_VIA_GODLIKE_LURE = 1 << 8;
  38. const U32 TELEPORT_FLAGS_GODLIKE = 1 << 9;
  39. const U32 TELEPORT_FLAGS_911 = 1 << 10;
  40. const U32 TELEPORT_FLAGS_DISABLE_CANCEL = 1 << 11; // Used for llTeleportAgentHome()
  41. const U32 TELEPORT_FLAGS_VIA_REGION_ID = 1 << 12;
  42. const U32 TELEPORT_FLAGS_IS_FLYING = 1 << 13;
  43. const U32 TELEPORT_FLAGS_SHOW_RESET_HOME = 1 << 14;
  44. const U32 TELEPORT_FLAGS_FORCE_REDIRECT = 1 << 15; // used to force a redirect to some random location - used when kicking someone from land.
  45. const U32 TELEPORT_FLAGS_MASK_VIA = TELEPORT_FLAGS_VIA_LURE
  46. | TELEPORT_FLAGS_VIA_LANDMARK
  47. | TELEPORT_FLAGS_VIA_LOCATION
  48. | TELEPORT_FLAGS_VIA_HOME
  49. | TELEPORT_FLAGS_VIA_TELEHUB
  50. | TELEPORT_FLAGS_VIA_LOGIN
  51. | TELEPORT_FLAGS_VIA_REGION_ID;
  52. const U32 LURE_FLAG_NORMAL_LURE = 1 << 0;
  53. const U32 LURE_FLAG_GODLIKE_LURE = 1 << 1;
  54. const U32 LURE_FLAG_GODLIKE_PURSUIT = 1 << 2;
  55. #endif