using System.Linq; using Content.Server.Hands.Components; using Content.Shared.Hands.Components; using JetBrains.Annotations; namespace Content.Server.AI.WorldState.States.Hands { [UsedImplicitly] public sealed class FreeHands : StateData> { public override string Name => "FreeHands"; public override List GetValue() { var result = new List(); if (!IoCManager.Resolve().TryGetComponent(Owner, out HandsComponent? handsComponent)) { return new List(); } return handsComponent.GetFreeHandNames().ToList(); } } }