Add multi-layer in-hand and clothing support (#6740)

This commit is contained in:
Leon Friedrich
2022-03-02 12:29:42 +13:00
committed by GitHub
parent d088f0f02c
commit c4c238bda9
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 sealed 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();
}
}