});
}
+ [CommandImplementation("with")]
+ public IEnumerable<EntityUid> With(
+ [CommandInvocationContext] IInvocationContext ctx,
+ [PipedArgument] IEnumerable<EntityUid> entities,
+ [CommandArgument] ValueRef<string, Prototype<TagPrototype>> tag)
+ {
+ _tag ??= GetSys<TagSystem>();
+ return entities.Where(e => _tag.HasTag(e, tag.Evaluate(ctx)!));
+ }
+
[CommandImplementation("add")]
public EntityUid Add(
[CommandInvocationContext] IInvocationContext ctx,
-command-description-visualize =
+command-description-visualize =
Takes the input list of entities and puts them into a UI window for easy browsing.
command-description-runverbas =
Runs a verb over the input entities with the given user.
Rejuvenates the given entities, restoring them to full health, clearing status effects, etc.
command-description-tag-list =
Lists tags on the given entities.
+command-description-tag-with =
+ Returns only the entities with the given tag from the piped list of entities.
command-description-tag-add =
Adds a tag to the given entities.
command-description-tag-rm =