Files
tbd-station-14/Content.Shared/Chat/ChatChannel.cs
Clyybber 914e49f867 Chat channel switching improvements (#4000)
* IC is default when joining;
switch to IC channel if IC channel becomes unavailable before trying OOC

* Allow channel cycling while the textbox is focused

* Fix focus channel keybinds not actually focusing

* Whitespess

* Fix duplicate radio

* Smol CycleChatChannel cleanup

* Revert style change
2021-05-15 03:28:04 -07:00

71 lines
1.5 KiB
C#

#nullable enable
using System;
namespace Content.Shared.Chat
{
/// <summary>
/// Represents chat channels that the player can filter chat tabs by.
/// </summary>
[Flags]
public enum ChatChannel : short
{
None = 0,
/// <summary>
/// Chat heard by players within earshot
/// </summary>
Local = 1,
/// <summary>
/// Messages from the server
/// </summary>
Server = 2,
/// <summary>
/// Damage messages
/// </summary>
Damage = 4,
/// <summary>
/// Radio messages
/// </summary>
Radio = 8,
/// <summary>
/// Out-of-character channel
/// </summary>
OOC = 16,
/// <summary>
/// Visual events the player can see.
/// Basically like visual_message in SS13.
/// </summary>
Visual = 32,
/// <summary>
/// Emotes
/// </summary>
Emotes = 64,
/// <summary>
/// Deadchat
/// </summary>
Dead = 128,
/// <summary>
/// Admin chat
/// </summary>
AdminChat = 256,
/// <summary>
/// Unspecified.
/// </summary>
Unspecified = 512,
/// <summary>
/// Channels considered to be IC.
/// </summary>
IC = Local | Radio | Dead | Emotes | Damage | Visual,
}
}