2022-08-31 14:12:09 +02:00
|
|
|
using Robust.Shared.Serialization;
|
|
|
|
|
|
|
|
|
|
namespace Content.Shared.VendingMachines
|
|
|
|
|
{
|
|
|
|
|
[NetSerializable, Serializable]
|
|
|
|
|
public sealed class VendingMachineInterfaceState : BoundUserInterfaceState
|
|
|
|
|
{
|
|
|
|
|
public List<VendingMachineInventoryEntry> Inventory;
|
2023-10-02 16:50:02 +09:00
|
|
|
// WD EDIT START
|
|
|
|
|
public double PriceMultiplier;
|
|
|
|
|
public int Credits;
|
2022-08-31 14:12:09 +02:00
|
|
|
|
2023-10-02 16:50:02 +09:00
|
|
|
public VendingMachineInterfaceState(List<VendingMachineInventoryEntry> inventory, double priceMultiplier,
|
|
|
|
|
int credits)
|
2022-08-31 14:12:09 +02:00
|
|
|
{
|
|
|
|
|
Inventory = inventory;
|
2023-10-02 16:50:02 +09:00
|
|
|
PriceMultiplier = priceMultiplier;
|
|
|
|
|
Credits = credits;
|
2022-08-31 14:12:09 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2023-10-02 16:50:02 +09:00
|
|
|
[Serializable, NetSerializable]
|
|
|
|
|
public sealed class VendingMachineWithdrawMessage : BoundUserInterfaceMessage
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
// WD EDIT END
|
|
|
|
|
|
2022-08-31 14:12:09 +02:00
|
|
|
[Serializable, NetSerializable]
|
|
|
|
|
public sealed class VendingMachineEjectMessage : BoundUserInterfaceMessage
|
|
|
|
|
{
|
|
|
|
|
public readonly InventoryType Type;
|
|
|
|
|
public readonly string ID;
|
2023-10-02 16:50:02 +09:00
|
|
|
public VendingMachineEjectMessage(InventoryType type, string id) // WD EDIT
|
2022-08-31 14:12:09 +02:00
|
|
|
{
|
|
|
|
|
Type = type;
|
|
|
|
|
ID = id;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Serializable, NetSerializable]
|
|
|
|
|
public enum VendingMachineUiKey
|
|
|
|
|
{
|
|
|
|
|
Key,
|
|
|
|
|
}
|
|
|
|
|
}
|