* humanoid sexmorph sprite restoration can't believe i broke sex/gender AGAIN * fixes default species appearances with no profile, tweaks randomization to no longer randomize species * A * fixes an oops #11494
37 lines
1.2 KiB
C#
37 lines
1.2 KiB
C#
using Content.Shared.Humanoid.Markings;
|
|
using Robust.Shared.Serialization;
|
|
|
|
namespace Content.Shared.Humanoid;
|
|
|
|
[Serializable, NetSerializable]
|
|
public enum HumanoidVisualizerKey
|
|
{
|
|
Key
|
|
}
|
|
|
|
[Serializable, NetSerializable]
|
|
public sealed class HumanoidVisualizerData : ICloneable
|
|
{
|
|
public HumanoidVisualizerData(string species, Dictionary<HumanoidVisualLayers, CustomBaseLayerInfo> customBaseLayerInfo, Color skinColor, Sex sex, List<HumanoidVisualLayers> layerVisibility, List<Marking> markings)
|
|
{
|
|
Species = species;
|
|
CustomBaseLayerInfo = customBaseLayerInfo;
|
|
SkinColor = skinColor;
|
|
Sex = sex;
|
|
LayerVisibility = layerVisibility;
|
|
Markings = markings;
|
|
}
|
|
|
|
public string Species { get; }
|
|
public Dictionary<HumanoidVisualLayers, CustomBaseLayerInfo> CustomBaseLayerInfo { get; }
|
|
public Color SkinColor { get; }
|
|
public Sex Sex { get; }
|
|
public List<HumanoidVisualLayers> LayerVisibility { get; }
|
|
public List<Marking> Markings { get; }
|
|
|
|
public object Clone()
|
|
{
|
|
return new HumanoidVisualizerData(Species, new(CustomBaseLayerInfo), SkinColor, Sex, new(LayerVisibility), new(Markings));
|
|
}
|
|
}
|