2022-09-11 18:56:21 -07:00
|
|
|
using Content.Client.Hands.Systems;
|
|
|
|
|
using Content.Client.Hands.UI;
|
2021-06-09 22:19:39 +02:00
|
|
|
using Content.Shared.Hands.Components;
|
2020-07-25 15:11:16 +02:00
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
namespace Content.Client.Hands
|
2020-07-25 15:11:16 +02:00
|
|
|
{
|
|
|
|
|
[RegisterComponent]
|
2020-12-13 14:28:20 -08:00
|
|
|
[ComponentReference(typeof(SharedHandsComponent))]
|
2022-06-07 15:26:28 +02:00
|
|
|
[Access(typeof(HandsSystem))]
|
2022-02-16 00:23:23 -07:00
|
|
|
public sealed class HandsComponent : SharedHandsComponent
|
2020-07-25 15:11:16 +02:00
|
|
|
{
|
2022-03-04 18:02:53 +13:00
|
|
|
/// <summary>
|
|
|
|
|
/// Whether or not to add in-hand sprites for held items. Some entities (e.g., drones) don't want these.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField("showInHands")]
|
|
|
|
|
public bool ShowInHands = true;
|
|
|
|
|
|
2022-03-02 12:29:42 +13:00
|
|
|
/// <summary>
|
|
|
|
|
/// Data about the current sprite layers that the hand is contributing to the owner entity. Used for sprite in-hands.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public readonly Dictionary<HandLocation, HashSet<string>> RevealedLayers = new();
|
2020-07-25 15:11:16 +02:00
|
|
|
}
|
|
|
|
|
}
|