]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Make VendingMachineInventoryEntry a data definition for post-init savegrid (#38406)
authorPerry Fraser <perryprog@users.noreply.github.com>
Thu, 31 Jul 2025 18:34:29 +0000 (14:34 -0400)
committerGitHub <noreply@github.com>
Thu, 31 Jul 2025 18:34:29 +0000 (20:34 +0200)
fix: make VendingMachineInventoryEntry a data definition

Content.Shared/VendingMachines/VendingMachineComponent.cs

index cbd59dbfaa2c4d1474c39100552b02233128cf1d..32cd0ca382485d0aacc6f9d1938badd8ddd3952b 100644 (file)
@@ -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;