Makes construction graphs turing complete (#3516)
* Makes construction graphs turing complete * Improvements
This commit is contained in:
committed by
GitHub
parent
2648ba4e57
commit
13e95ac9a8
20
Content.Server/Construction/Completions/PopupEveryone.cs
Normal file
20
Content.Server/Construction/Completions/PopupEveryone.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
#nullable enable
|
||||
using System.Threading.Tasks;
|
||||
using Content.Server.Utility;
|
||||
using Content.Shared.Construction;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Serialization.Manager.Attributes;
|
||||
|
||||
namespace Content.Server.Construction.Completions
|
||||
{
|
||||
[DataDefinition]
|
||||
public class PopupEveryone : IGraphAction
|
||||
{
|
||||
[field: DataField("text")] public string Text { get; } = string.Empty;
|
||||
|
||||
public async Task PerformAction(IEntity entity, IEntity? user)
|
||||
{
|
||||
entity.PopupMessageEveryone(Text);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user