using System.Collections.Generic; using System.Linq; using Robust.Shared.GameObjects; namespace Robust.Shared.Toolshed.Commands.Entities; [ToolshedCommand] internal sealed class PausedCommand : ToolshedCommand { [CommandImplementation] public IEnumerable Paused([PipedArgument] IEnumerable entities, [CommandInverted] bool inverted) { return entities.Where(x => Comp(x).EntityPaused ^ inverted); } }