From: Perry Fraser Date: Thu, 31 Jul 2025 18:34:29 +0000 (-0400) Subject: Make VendingMachineInventoryEntry a data definition for post-init savegrid (#38406) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=623ea3dd63ae2c1196c2723a9f3dbaec3e3ccf6b;p=space-station-14.git Make VendingMachineInventoryEntry a data definition for post-init savegrid (#38406) fix: make VendingMachineInventoryEntry a data definition --- diff --git a/Content.Shared/VendingMachines/VendingMachineComponent.cs b/Content.Shared/VendingMachines/VendingMachineComponent.cs index cbd59dbfaa..32cd0ca382 100644 --- a/Content.Shared/VendingMachines/VendingMachineComponent.cs +++ b/Content.Shared/VendingMachines/VendingMachineComponent.cs @@ -193,15 +193,18 @@ namespace Content.Shared.VendingMachines #endregion } - [Serializable, NetSerializable] - public sealed class VendingMachineInventoryEntry + [Serializable, NetSerializable, DataDefinition] + public sealed partial class VendingMachineInventoryEntry { - [ViewVariables(VVAccess.ReadWrite)] + [DataField] public InventoryType Type; - [ViewVariables(VVAccess.ReadWrite)] + + [DataField] public string ID; - [ViewVariables(VVAccess.ReadWrite)] + + [DataField] public uint Amount; + public VendingMachineInventoryEntry(InventoryType type, string id, uint amount) { Type = type;