Files
RobustToolbox/Robust.Shared/Toolshed/Commands/Entities/DeleteCommand.cs
T
Leon FriedrichandGitHub 9af119f57a Toolshed Rejig (#5455)
* Toolshed Rejig

* shorten hint string

* Try fix conflicts. Ill make with work later

* bodge

* Fix ProtoIdTypeParser assert

* comment

* AllEntities

* Remove more linq from WhereCommand

* better help strings

* Add ContainsCommand

* loc strings

* Add contains command description

* Add $self variable

* Errors for writing to readonly variables

* A
2024-12-21 17:49:11 +11:00

24 lines
495 B
C#

using System.Collections.Generic;
using Robust.Shared.GameObjects;
namespace Robust.Shared.Toolshed.Commands.Entities;
[ToolshedCommand]
internal sealed class DeleteCommand : ToolshedCommand
{
[CommandImplementation]
public void Delete([PipedArgument] IEnumerable<EntityUid> entities)
{
foreach (var ent in entities)
{
Del(ent);
}
}
[CommandImplementation]
public void Delete(EntityUid entity)
{
Del(entity);
}
}