forked from space-syndicate/space-station-14
21 lines
483 B
C#
21 lines
483 B
C#
using Content.Shared.Tips;
|
|
using Robust.Client.UserInterface;
|
|
|
|
namespace Content.Client.Tips;
|
|
|
|
public sealed class TipsSystem : EntitySystem
|
|
{
|
|
[Dependency] private readonly IUserInterfaceManager _uiMan = default!;
|
|
public override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
|
|
SubscribeNetworkEvent<ClippyEvent>(OnClippyEv);
|
|
}
|
|
|
|
private void OnClippyEv(ClippyEvent ev)
|
|
{
|
|
_uiMan.GetUIController<ClippyUIController>().AddMessage(ev);
|
|
}
|
|
}
|