21 lines
613 B
C#
21 lines
613 B
C#
using Content.Shared.Construction;
|
|
using JetBrains.Annotations;
|
|
using Robust.Shared.GameObjects;
|
|
using Robust.Shared.Serialization.Manager.Attributes;
|
|
using System.Threading.Tasks;
|
|
using Content.Server.Destructible;
|
|
using Content.Shared.Acts;
|
|
|
|
namespace Content.Server.Construction.Completions
|
|
{
|
|
[UsedImplicitly]
|
|
[DataDefinition]
|
|
public class DestroyEntity : IGraphAction
|
|
{
|
|
public void PerformAction(EntityUid uid, EntityUid? userUid, IEntityManager entityManager)
|
|
{
|
|
entityManager.EntitySysManager.GetEntitySystem<ActSystem>().HandleDestruction(uid);
|
|
}
|
|
}
|
|
}
|