| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- namespace Content.Shared.Chat.V2;
- /// <summary>
- /// The types of messages that can be sent, validated and processed via user input that are covered by Chat V2.
- /// </summary>
- public enum MessageType : byte
- {
- #region Player-sendable types
- /// <summary>
- /// Chat for announcements like CentCom telling you to stop sending them memes.
- /// </summary>
- Announcement,
- /// <summary>
- /// Chat that ghosts use to complain about being gibbed.
- /// </summary>
- DeadChat,
- /// <summary>
- /// Chat that mimes use to evade their vow.
- /// </summary>
- Emote,
- /// <summary>
- /// Chat that players use to make lame jokes to people nearby.
- /// </summary>
- Local,
- /// <summary>
- /// Chat that players use to complain about shitsec/admins/antags/balance/etc.
- /// </summary>
- Looc,
- /// <summary>
- /// Chat that players use to say "HELP MAINT", or plead to call the shuttle because a beaker spilled.
- /// </summary>
- /// <remarks>This does not tell you what radio channel has been chatted on!</remarks>
- Radio,
- /// <summary>
- /// Chat that is used exclusively by syndie tots to collaborate on whatever tots do.
- /// </summary>
- Whisper,
- #endregion
- #region Non-player-sendable types
- /// <summary>
- /// Chat that is sent to exactly one player; almost exclusively used for admemes and prayer responses.
- /// </summary>
- Subtle,
- /// <summary>
- /// Chat that is sent by automata, like when a vending machine thanks you for your unwise purchases.
- /// </summary>
- Background,
- #endregion
- }
- /// <summary>
- /// Defines a chat event that can be stored in a chat repository.
- /// </summary>
- public interface IChatEvent
- {
- /// <summary>
- /// The sender of the chat message.
- /// </summary>
- public EntityUid Sender
- {
- get;
- }
- /// <summary>
- /// The ID of the message. This is overwritten when saved into a repository.
- /// </summary>
- public uint Id
- {
- get;
- set;
- }
- /// <summary>
- /// The sent message.
- /// </summary>
- public string Message
- {
- get;
- set;
- }
- /// <summary>
- /// The type of sent message.
- /// </summary>
- public MessageType Type
- {
- get;
- }
- }
|