1
0

VendingMachineInventoryPrototype.cs 1.1 KB

1234567891011121314151617181920212223
  1. using Robust.Shared.Prototypes;
  2. using Robust.Shared.Serialization;
  3. using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.Dictionary;
  4. namespace Content.Shared.VendingMachines
  5. {
  6. [Serializable, NetSerializable, Prototype]
  7. public sealed partial class VendingMachineInventoryPrototype : IPrototype
  8. {
  9. [ViewVariables]
  10. [IdDataField]
  11. public string ID { get; private set; } = default!;
  12. [DataField("startingInventory", customTypeSerializer:typeof(PrototypeIdDictionarySerializer<uint, EntityPrototype>))]
  13. public Dictionary<string, uint> StartingInventory { get; private set; } = new();
  14. [DataField("emaggedInventory", customTypeSerializer:typeof(PrototypeIdDictionarySerializer<uint, EntityPrototype>))]
  15. public Dictionary<string, uint>? EmaggedInventory { get; private set; }
  16. [DataField("contrabandInventory", customTypeSerializer:typeof(PrototypeIdDictionarySerializer<uint, EntityPrototype>))]
  17. public Dictionary<string, uint>? ContrabandInventory { get; private set; }
  18. }
  19. }