Revert "Add support for multi-layer in-hand and clothing sprites" (#6521)
This commit is contained in:
@@ -3,6 +3,8 @@ using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Linq;
|
||||
using Content.Shared.ActionBlocker;
|
||||
using Content.Shared.Administration.Logs;
|
||||
using Content.Shared.Database;
|
||||
using Content.Shared.Interaction;
|
||||
using Content.Shared.Item;
|
||||
using Robust.Shared.Containers;
|
||||
@@ -16,7 +18,6 @@ using Robust.Shared.Physics;
|
||||
using Robust.Shared.Serialization;
|
||||
using Robust.Shared.Serialization.Manager.Attributes;
|
||||
using Robust.Shared.ViewVariables;
|
||||
using static Robust.Shared.GameObjects.SharedSpriteComponent;
|
||||
|
||||
namespace Content.Shared.Hands.Components
|
||||
{
|
||||
@@ -707,6 +708,47 @@ namespace Content.Shared.Hands.Components
|
||||
}
|
||||
}
|
||||
|
||||
#region visualizerData
|
||||
[Serializable, NetSerializable]
|
||||
public enum HandsVisuals : byte
|
||||
{
|
||||
VisualState
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public class HandsVisualState : ICloneable
|
||||
{
|
||||
public List<HandVisualState> Hands { get; } = new();
|
||||
|
||||
public HandsVisualState(List<HandVisualState> hands)
|
||||
{
|
||||
Hands = hands;
|
||||
}
|
||||
|
||||
public object Clone()
|
||||
{
|
||||
return new HandsVisualState(new List<HandVisualState>(Hands));
|
||||
}
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public struct HandVisualState
|
||||
{
|
||||
public string RsiPath { get; }
|
||||
public string? EquippedPrefix { get; }
|
||||
public HandLocation Location { get; }
|
||||
public Color Color { get; }
|
||||
|
||||
public HandVisualState(string rsiPath, string? equippedPrefix, HandLocation location, Color color)
|
||||
{
|
||||
RsiPath = rsiPath;
|
||||
EquippedPrefix = equippedPrefix;
|
||||
Location = location;
|
||||
Color = color;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public class Hand
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user