Files
crystall-punk-14/Content.Server/Popups/PopupSystem.cs

32 lines
1.2 KiB
C#
Raw Normal View History

2021-09-26 15:18:45 +02:00
using Content.Shared.Popups;
using Robust.Shared.Map;
using Robust.Shared.Player;
namespace Content.Server.Popups
{
public sealed class PopupSystem : SharedPopupSystem
2021-09-26 15:18:45 +02:00
{
public override void PopupCursor(string message, Filter filter, PopupType type=PopupType.Small)
2021-09-26 15:18:45 +02:00
{
// TODO REPLAYS
// add variants that take in a EntityUid or ICommonSession
// then remove any that send Filter.SinglePlayer() or single entity.
// then default to recording replays
// and manually remove any that shouldn't be replayed.
RaiseNetworkEvent(new PopupCursorEvent(message, type), filter);
2021-09-26 15:18:45 +02:00
}
public override void PopupCoordinates(string message, EntityCoordinates coordinates, Filter filter, PopupType type=PopupType.Small)
2021-09-26 15:18:45 +02:00
{
// TODO REPLAYS See above
RaiseNetworkEvent(new PopupCoordinatesEvent(message, type, coordinates), filter);
2021-09-26 15:18:45 +02:00
}
public override void PopupEntity(string message, EntityUid uid, Filter filter, PopupType type=PopupType.Small)
2021-09-26 15:18:45 +02:00
{
// TODO REPLAYS See above
RaiseNetworkEvent(new PopupEntityEvent(message, type, uid), filter);
2021-09-26 15:18:45 +02:00
}
}
}