Make VendingMachineInventoryEntry a data definition for post-init savegrid (#38406)
fix: make VendingMachineInventoryEntry a data definition
This commit is contained in:
@@ -193,15 +193,18 @@ namespace Content.Shared.VendingMachines
|
|||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
|
|
||||||
[Serializable, NetSerializable]
|
[Serializable, NetSerializable, DataDefinition]
|
||||||
public sealed class VendingMachineInventoryEntry
|
public sealed partial class VendingMachineInventoryEntry
|
||||||
{
|
{
|
||||||
[ViewVariables(VVAccess.ReadWrite)]
|
[DataField]
|
||||||
public InventoryType Type;
|
public InventoryType Type;
|
||||||
[ViewVariables(VVAccess.ReadWrite)]
|
|
||||||
|
[DataField]
|
||||||
public string ID;
|
public string ID;
|
||||||
[ViewVariables(VVAccess.ReadWrite)]
|
|
||||||
|
[DataField]
|
||||||
public uint Amount;
|
public uint Amount;
|
||||||
|
|
||||||
public VendingMachineInventoryEntry(InventoryType type, string id, uint amount)
|
public VendingMachineInventoryEntry(InventoryType type, string id, uint amount)
|
||||||
{
|
{
|
||||||
Type = type;
|
Type = type;
|
||||||
|
|||||||
Reference in New Issue
Block a user