DestroyEntity.cs 489 B

12345678910111213141516
  1. using Content.Shared.Construction;
  2. using JetBrains.Annotations;
  3. using Content.Server.Destructible;
  4. namespace Content.Server.Construction.Completions
  5. {
  6. [UsedImplicitly]
  7. [DataDefinition]
  8. public sealed partial class DestroyEntity : IGraphAction
  9. {
  10. public void PerformAction(EntityUid uid, EntityUid? userUid, IEntityManager entityManager)
  11. {
  12. entityManager.EntitySysManager.GetEntitySystem<DestructibleSystem>().DestroyEntity(uid);
  13. }
  14. }
  15. }