20 lines
532 B
C#
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);
|
|
}
|
|
}
|
|
}
|