| 1234567891011121314151617181920212223 |
- using Robust.Shared.Prototypes;
- using Robust.Shared.Serialization;
- using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.Dictionary;
- namespace Content.Shared.VendingMachines
- {
- [Serializable, NetSerializable, Prototype]
- public sealed partial class VendingMachineInventoryPrototype : IPrototype
- {
- [ViewVariables]
- [IdDataField]
- public string ID { get; private set; } = default!;
- [DataField("startingInventory", customTypeSerializer:typeof(PrototypeIdDictionarySerializer<uint, EntityPrototype>))]
- public Dictionary<string, uint> StartingInventory { get; private set; } = new();
- [DataField("emaggedInventory", customTypeSerializer:typeof(PrototypeIdDictionarySerializer<uint, EntityPrototype>))]
- public Dictionary<string, uint>? EmaggedInventory { get; private set; }
- [DataField("contrabandInventory", customTypeSerializer:typeof(PrototypeIdDictionarySerializer<uint, EntityPrototype>))]
- public Dictionary<string, uint>? ContrabandInventory { get; private set; }
- }
- }
|