2023-12-07 16:20:51 -05:00
|
|
|
|
using Robust.Shared.Containers;
|
|
|
|
|
|
using Robust.Shared.GameStates;
|
2023-04-11 17:20:47 -07:00
|
|
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
2021-12-30 22:56:10 +01:00
|
|
|
|
|
|
|
|
|
|
namespace Content.Shared.Inventory;
|
|
|
|
|
|
|
2023-04-11 17:20:47 -07:00
|
|
|
|
[RegisterComponent, NetworkedComponent]
|
|
|
|
|
|
[Access(typeof(InventorySystem))]
|
2023-08-22 18:14:33 -07:00
|
|
|
|
public sealed partial class InventoryComponent : Component
|
2021-12-30 22:56:10 +01:00
|
|
|
|
{
|
2022-04-03 02:01:22 +02:00
|
|
|
|
[DataField("templateId", customTypeSerializer: typeof(PrototypeIdSerializer<InventoryTemplatePrototype>))]
|
2023-08-22 18:14:33 -07:00
|
|
|
|
public string TemplateId { get; private set; } = "human";
|
2023-04-11 17:20:47 -07:00
|
|
|
|
|
|
|
|
|
|
[DataField("speciesId")] public string? SpeciesId { get; set; }
|
2023-12-07 16:20:51 -05:00
|
|
|
|
|
|
|
|
|
|
public SlotDefinition[] Slots = Array.Empty<SlotDefinition>();
|
|
|
|
|
|
public ContainerSlot[] Containers = Array.Empty<ContainerSlot>();
|
2021-12-30 22:56:10 +01:00
|
|
|
|
}
|