2023-03-23 10:10:49 -05:00
|
|
|
using Content.Server.Mind.Components;
|
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-03-30 22:21:58 -07:00
|
|
|
using Robust.Shared.Network;
|
2022-06-03 21:37:35 +10:00
|
|
|
using Robust.Shared.Player;
|
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
|
|
|
|
2022-12-19 21:55:45 -06:00
|
|
|
void DispatchServerMessage(IPlayerSession player, string message, bool suppressLog = false);
|
2019-04-13 09:45:09 +02:00
|
|
|
|
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);
|
2023-03-23 10:10:49 -05:00
|
|
|
void SendAdminAlert(string message);
|
2023-06-18 11:33:19 -07:00
|
|
|
void SendAdminAlert(EntityUid player, string message, MindContainerComponent? mindContainerComponent = null);
|
2022-03-30 22:21:58 -07:00
|
|
|
|
2022-10-18 19:59:09 +13:00
|
|
|
void ChatMessageToOne(ChatChannel channel, string message, string wrappedMessage, EntityUid source, bool hideChat,
|
2022-12-19 21:39:01 -06:00
|
|
|
INetChannel client, Color? colorOverride = null, bool recordReplay = false, string? audioPath = null, float audioVolume = 0);
|
2022-11-23 00:52:19 +13:00
|
|
|
|
|
|
|
|
void ChatMessageToMany(ChatChannel channel, string message, string wrappedMessage, EntityUid source, bool hideChat, bool recordReplay,
|
2022-12-19 21:39:01 -06:00
|
|
|
IEnumerable<INetChannel> clients, Color? colorOverride = null, string? audioPath = null, float audioVolume = 0);
|
2022-11-23 00:52:19 +13:00
|
|
|
|
2022-12-19 21:39:01 -06:00
|
|
|
void ChatMessageToManyFiltered(Filter filter, ChatChannel channel, string message, string wrappedMessage, EntityUid source, bool hideChat, bool recordReplay, Color? colorOverride, string? audioPath = null, float audioVolume = 0);
|
2022-11-23 00:52:19 +13:00
|
|
|
|
2022-12-19 21:39:01 -06:00
|
|
|
void ChatMessageToAll(ChatChannel channel, string message, string wrappedMessage, EntityUid source, bool hideChat, bool recordReplay, Color? colorOverride = null, string? audioPath = null, float audioVolume = 0);
|
2022-03-30 22:21:58 -07:00
|
|
|
|
|
|
|
|
bool MessageCharacterLimit(IPlayerSession player, string message);
|
2019-04-13 09:45:09 +02:00
|
|
|
}
|
|
|
|
|
}
|