2021-04-20 18:39:39 -05:00
|
|
|
using System;
|
2019-04-13 09:45:09 +02:00
|
|
|
using Content.Client.Chat;
|
2019-07-30 23:13:05 +02:00
|
|
|
using Robust.Shared.GameObjects;
|
2019-08-04 01:08:55 +02:00
|
|
|
using Robust.Shared.Timing;
|
2019-04-13 09:45:09 +02:00
|
|
|
|
|
|
|
|
namespace Content.Client.Interfaces.Chat
|
|
|
|
|
{
|
|
|
|
|
public interface IChatManager
|
|
|
|
|
{
|
|
|
|
|
void Initialize();
|
|
|
|
|
|
2019-08-04 01:08:55 +02:00
|
|
|
void FrameUpdate(FrameEventArgs delta);
|
2019-07-30 23:13:05 +02:00
|
|
|
|
2019-04-13 09:45:09 +02:00
|
|
|
void SetChatBox(ChatBox chatBox);
|
2019-07-30 23:13:05 +02:00
|
|
|
|
|
|
|
|
void RemoveSpeechBubble(EntityUid entityUid, SpeechBubble bubble);
|
2021-01-04 05:25:33 -03:00
|
|
|
|
2021-04-20 18:39:39 -05:00
|
|
|
/// <summary>
|
|
|
|
|
/// Current chat box control. This can be modified, so do not depend on saving a reference to this.
|
|
|
|
|
/// </summary>
|
|
|
|
|
ChatBox? CurrentChatBox { get; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Invoked when CurrentChatBox is resized (including after setting initial default size)
|
|
|
|
|
/// </summary>
|
|
|
|
|
event Action<ChatResizedEventArgs>? OnChatBoxResized;
|
2019-04-13 09:45:09 +02:00
|
|
|
}
|
|
|
|
|
}
|