* split logic into own system * add support for different size displacement maps * some clothes may not use displacement maps * displacement maps spport hand sprites * Update DisplacementMapSystem.cs * rename things * fuck stencilmask * fix bugs * no masks * Update jumpsuits.yml * fix species specific sprites * Update ClothingSystem.cs * shoes + ears displacement, some bugfix * Update DisplacementMapSystem.cs
35 lines
1.3 KiB
C#
35 lines
1.3 KiB
C#
using Content.Shared.DisplacementMap;
|
|
using Robust.Shared.Containers;
|
|
using Robust.Shared.GameStates;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
|
|
|
namespace Content.Shared.Inventory;
|
|
|
|
[RegisterComponent, NetworkedComponent]
|
|
[Access(typeof(InventorySystem))]
|
|
public sealed partial class InventoryComponent : Component
|
|
{
|
|
[DataField("templateId", customTypeSerializer: typeof(PrototypeIdSerializer<InventoryTemplatePrototype>))]
|
|
public string TemplateId { get; private set; } = "human";
|
|
|
|
[DataField("speciesId")] public string? SpeciesId { get; set; }
|
|
|
|
public SlotDefinition[] Slots = Array.Empty<SlotDefinition>();
|
|
public ContainerSlot[] Containers = Array.Empty<ContainerSlot>();
|
|
|
|
[DataField]
|
|
public Dictionary<string, DisplacementData> Displacements = new();
|
|
|
|
/// <summary>
|
|
/// Alternate displacement maps, which if available, will be selected for the player of the appropriate gender.
|
|
/// </summary>
|
|
[DataField]
|
|
public Dictionary<string, DisplacementData> FemaleDisplacements = new();
|
|
|
|
/// <summary>
|
|
/// Alternate displacement maps, which if available, will be selected for the player of the appropriate gender.
|
|
/// </summary>
|
|
[DataField]
|
|
public Dictionary<string, DisplacementData> MaleDisplacements = new();
|
|
}
|