Files
OldThink/Content.Server/Construction/Completions/PopupEveryone.cs
2021-07-16 17:37:09 -07:00

20 lines
532 B
C#

using System.Threading.Tasks;
using Content.Server.Notification;
using Content.Shared.Construction;
using Robust.Shared.GameObjects;
using Robust.Shared.Serialization.Manager.Attributes;
namespace Content.Server.Construction.Completions
{
[DataDefinition]
public class PopupEveryone : IGraphAction
{
[DataField("text")] public string Text { get; } = string.Empty;
public async Task PerformAction(IEntity entity, IEntity? user)
{
entity.PopupMessageEveryone(Text);
}
}
}