Add support for multi-layer in-hand and clothing sprites (#6252)

This commit is contained in:
Leon Friedrich
2022-02-07 16:37:57 +13:00
committed by GitHub
parent aad52dfd35
commit 470e4f8bdc
17 changed files with 529 additions and 262 deletions

View File

@@ -1,7 +1,7 @@
using Content.Shared.Hands.Components;
using Robust.Shared.Analyzers;
using Robust.Shared.GameObjects;
using Robust.Shared.IoC;
using System.Collections.Generic;
namespace Content.Client.Hands
{
@@ -11,5 +11,10 @@ namespace Content.Client.Hands
public class HandsComponent : SharedHandsComponent
{
public HandsGui? Gui { get; set; }
/// <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();
}
}