2022-03-30 22:21:58 -07:00
|
|
|
using Content.Shared.Chat;
|
2021-02-11 01:13:03 -08:00
|
|
|
using Robust.Server.Player;
|
2022-01-11 06:48:18 -08:00
|
|
|
using Robust.Shared.Console;
|
2021-02-11 01:13:03 -08:00
|
|
|
using Robust.Shared.GameObjects;
|
2022-03-30 22:21:58 -07:00
|
|
|
using Robust.Shared.Network;
|
2022-01-11 06:48:18 -08:00
|
|
|
using Robust.Shared.Players;
|
2019-04-13 09:45:09 +02:00
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
namespace Content.Server.Chat.Managers
|
2019-04-13 09:45:09 +02:00
|
|
|
{
|
|
|
|
|
public interface IChatManager
|
|
|
|
|
{
|
|
|
|
|
void Initialize();
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Dispatch a server announcement to every connected player.
|
|
|
|
|
/// </summary>
|
2022-03-01 05:21:28 -08:00
|
|
|
/// <param name="message"></param>
|
|
|
|
|
/// <param name="colorOverride">Override the color of the message being sent.</param>
|
|
|
|
|
void DispatchServerAnnouncement(string message, Color? colorOverride = null);
|
2019-04-13 09:45:09 +02:00
|
|
|
|
2020-08-14 06:52:17 +10:00
|
|
|
/// <summary>
|
|
|
|
|
/// Station announcement to every player
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="message"></param>
|
2021-01-01 16:34:54 +01:00
|
|
|
/// <param name="sender"></param>
|
2021-11-22 22:34:48 +00:00
|
|
|
/// <param name="playDefaultSound">If the default 'PA' sound should be played.</param>
|
2022-03-01 05:21:28 -08:00
|
|
|
/// <param name="colorOverride">Override the color of the message being sent.</param>
|
2022-03-30 22:21:58 -07:00
|
|
|
void DispatchStationAnnouncement(string message, string sender = "CentComm", bool playDefaultSound = true,
|
|
|
|
|
Color? colorOverride = null);
|
2020-08-14 06:52:17 +10:00
|
|
|
|
2019-04-13 09:45:09 +02:00
|
|
|
void DispatchServerMessage(IPlayerSession player, string message);
|
|
|
|
|
|
2022-03-30 22:21:58 -07:00
|
|
|
void TrySendOOCMessage(IPlayerSession player, string message, OOCChatType type);
|
2019-04-17 23:31:43 +02:00
|
|
|
|
|
|
|
|
void SendHookOOC(string sender, string message);
|
2020-11-01 23:56:35 +01:00
|
|
|
void SendAdminAnnouncement(string message);
|
2022-03-30 22:21:58 -07:00
|
|
|
|
|
|
|
|
void ChatMessageToOne(ChatChannel channel, string message, string messageWrap, EntityUid source, bool hideChat,
|
|
|
|
|
INetChannel client);
|
|
|
|
|
void ChatMessageToMany(ChatChannel channel, string message, string messageWrap, EntityUid source, bool hideChat,
|
|
|
|
|
List<INetChannel> clients);
|
|
|
|
|
void ChatMessageToAll(ChatChannel channel, string message, string messageWrap, Color? colorOverride = null);
|
|
|
|
|
|
|
|
|
|
bool MessageCharacterLimit(IPlayerSession player, string message);
|
2019-04-13 09:45:09 +02:00
|
|
|
}
|
|
|
|
|
}
|