ChatChannel.cs 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. namespace Content.Shared.Chat
  2. {
  3. /// <summary>
  4. /// Represents chat channels that the player can filter chat tabs by.
  5. /// </summary>
  6. [Flags]
  7. public enum ChatChannel : ushort
  8. {
  9. None = 0,
  10. /// <summary>
  11. /// Chat heard by players within earshot
  12. /// </summary>
  13. Local = 1 << 0,
  14. /// <summary>
  15. /// Chat heard by players right next to each other
  16. /// </summary>
  17. Whisper = 1 << 1,
  18. /// <summary>
  19. /// Messages from the server
  20. /// </summary>
  21. Server = 1 << 2,
  22. /// <summary>
  23. /// Damage messages
  24. /// </summary>
  25. Damage = 1 << 3,
  26. /// <summary>
  27. /// Radio messages
  28. /// </summary>
  29. Radio = 1 << 4,
  30. /// <summary>
  31. /// Local out-of-character channel
  32. /// </summary>
  33. LOOC = 1 << 5,
  34. /// <summary>
  35. /// Out-of-character channel
  36. /// </summary>
  37. OOC = 1 << 6,
  38. /// <summary>
  39. /// Visual events the player can see.
  40. /// Basically like visual_message in SS13.
  41. /// </summary>
  42. Visual = 1 << 7,
  43. /// <summary>
  44. /// Notifications from things like the PDA.
  45. /// Receiving a PDA message will send a notification to this channel for example
  46. /// </summary>
  47. Notifications = 1 << 8,
  48. /// <summary>
  49. /// Emotes
  50. /// </summary>
  51. Emotes = 1 << 9,
  52. /// <summary>
  53. /// Deadchat
  54. /// </summary>
  55. Dead = 1 << 10,
  56. /// <summary>
  57. /// Misc admin messages
  58. /// </summary>
  59. Admin = 1 << 11,
  60. /// <summary>
  61. /// Admin alerts, messages likely of elevated importance to admins
  62. /// </summary>
  63. AdminAlert = 1 << 12,
  64. /// <summary>
  65. /// Admin chat
  66. /// </summary>
  67. AdminChat = 1 << 13,
  68. /// <summary>
  69. /// Unspecified.
  70. /// </summary>
  71. Unspecified = 1 << 14,
  72. /// <summary>
  73. /// Channels considered to be IC.
  74. /// </summary>
  75. IC = Local | Whisper | Radio | Dead | Emotes | Damage | Visual | Notifications,
  76. AdminRelated = Admin | AdminAlert | AdminChat,
  77. }
  78. }