2021-09-26 15:18:45 +02:00
|
|
|
using Content.Shared.Popups;
|
|
|
|
|
using Robust.Shared.Map;
|
|
|
|
|
using Robust.Shared.Player;
|
|
|
|
|
|
|
|
|
|
namespace Content.Server.Popups
|
|
|
|
|
{
|
2022-02-16 00:23:23 -07:00
|
|
|
public sealed class PopupSystem : SharedPopupSystem
|
2021-09-26 15:18:45 +02:00
|
|
|
{
|
2022-07-09 02:09:52 -07:00
|
|
|
public override void PopupCursor(string message, Filter filter, PopupType type=PopupType.Small)
|
2021-09-26 15:18:45 +02:00
|
|
|
{
|
2022-07-09 02:09:52 -07:00
|
|
|
RaiseNetworkEvent(new PopupCursorEvent(message, type), filter);
|
2021-09-26 15:18:45 +02:00
|
|
|
}
|
|
|
|
|
|
2022-07-09 02:09:52 -07:00
|
|
|
public override void PopupCoordinates(string message, EntityCoordinates coordinates, Filter filter, PopupType type=PopupType.Small)
|
2021-09-26 15:18:45 +02:00
|
|
|
{
|
2022-07-09 02:09:52 -07:00
|
|
|
RaiseNetworkEvent(new PopupCoordinatesEvent(message, type, coordinates), filter);
|
2021-09-26 15:18:45 +02:00
|
|
|
}
|
|
|
|
|
|
2022-07-09 02:09:52 -07:00
|
|
|
public override void PopupEntity(string message, EntityUid uid, Filter filter, PopupType type=PopupType.Small)
|
2021-09-26 15:18:45 +02:00
|
|
|
{
|
2022-07-09 02:09:52 -07:00
|
|
|
RaiseNetworkEvent(new PopupEntityEvent(message, type, uid), filter);
|
2021-09-26 15:18:45 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|