using System.Collections.Generic; using System.Linq; using Robust.Server.GameObjects; using Robust.Shared.GameObjects; using Robust.Shared.Player; using Robust.Shared.Toolshed; namespace Robust.Server.Toolshed.Commands.Players; [ToolshedCommand] public sealed class ActorCommand : ToolshedCommand { [CommandImplementation("controlled")] public IEnumerable Controlled([PipedArgument] IEnumerable input) { return input.Where(HasComp); } [CommandImplementation("session")] public IEnumerable Session([PipedArgument] IEnumerable input) { return input.Where(HasComp).Select(x => Comp(x).PlayerSession); } }