19 lines
601 B
C#
19 lines
601 B
C#
using Content.Server.Popups;
|
|
using Content.Shared.Construction;
|
|
using Robust.Shared.Player;
|
|
|
|
namespace Content.Server.Construction.Completions
|
|
{
|
|
[DataDefinition]
|
|
public sealed class PopupEveryone : IGraphAction
|
|
{
|
|
[DataField("text")] public string Text { get; } = string.Empty;
|
|
|
|
public void PerformAction(EntityUid uid, EntityUid? userUid, IEntityManager entityManager)
|
|
{
|
|
entityManager.EntitySysManager.GetEntitySystem<PopupSystem>()
|
|
.PopupEntity(Loc.GetString(Text), uid, Filter.Pvs(uid, entityManager:entityManager));
|
|
}
|
|
}
|
|
}
|