* try * pipupi * Update ClientClothingSystem.cs * Update vox.yml * Update ClientClothingSystem.cs
31 lines
1.0 KiB
C#
31 lines
1.0 KiB
C#
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; }
|
|
|
|
[DataField] public Dictionary<string, SlotDisplacementData> Displacements = [];
|
|
|
|
public SlotDefinition[] Slots = Array.Empty<SlotDefinition>();
|
|
public ContainerSlot[] Containers = Array.Empty<ContainerSlot>();
|
|
|
|
[DataDefinition]
|
|
public sealed partial class SlotDisplacementData
|
|
{
|
|
[DataField(required: true)]
|
|
public PrototypeLayerData Layer = default!;
|
|
|
|
[DataField]
|
|
public string? ShaderOverride = "DisplacedStencilDraw";
|
|
}
|
|
}
|