2021-06-09 22:19:39 +02:00
|
|
|
using Content.Server.Hands.Components;
|
2022-03-17 20:13:31 +13:00
|
|
|
using Content.Shared.Hands.EntitySystems;
|
2020-06-18 22:52:44 +10:00
|
|
|
using JetBrains.Annotations;
|
2021-12-03 14:17:01 +01:00
|
|
|
using Robust.Shared.GameObjects;
|
|
|
|
|
using Robust.Shared.IoC;
|
2020-06-18 22:52:44 +10:00
|
|
|
|
|
|
|
|
namespace Content.Server.AI.WorldState.States.Hands
|
|
|
|
|
{
|
|
|
|
|
[UsedImplicitly]
|
2022-02-16 00:23:23 -07:00
|
|
|
public sealed class AnyFreeHandState : StateData<bool>
|
2020-06-18 22:52:44 +10:00
|
|
|
{
|
|
|
|
|
public override string Name => "AnyFreeHand";
|
|
|
|
|
public override bool GetValue()
|
|
|
|
|
{
|
2022-03-17 20:13:31 +13:00
|
|
|
return IoCManager.Resolve<IEntitySystemManager>().GetEntitySystem<SharedHandsSystem>().TryGetEmptyHand(Owner, out _);
|
2020-06-18 22:52:44 +10:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|