* nasrano * Add station budget & salary * Initial balance * Vending machine UI * Pricing for vending machines * Finish economy * Eftpos * Finish eftpos * Put eftpos into lockers * Vending machine prices * Small fixes * Fix atm UI * Add atms to maps * fix * reset * Add PDA program * Maps again --------- Co-authored-by: Mona Hmiza <> Co-authored-by: rhailrake <49613070+rhailrake@users.noreply.github.com>
46 lines
1.2 KiB
C#
46 lines
1.2 KiB
C#
using Robust.Shared.Serialization;
|
|
|
|
namespace Content.Shared.VendingMachines
|
|
{
|
|
[NetSerializable, Serializable]
|
|
public sealed class VendingMachineInterfaceState : BoundUserInterfaceState
|
|
{
|
|
public List<VendingMachineInventoryEntry> Inventory;
|
|
// WD EDIT START
|
|
public double PriceMultiplier;
|
|
public int Credits;
|
|
|
|
public VendingMachineInterfaceState(List<VendingMachineInventoryEntry> inventory, double priceMultiplier,
|
|
int credits)
|
|
{
|
|
Inventory = inventory;
|
|
PriceMultiplier = priceMultiplier;
|
|
Credits = credits;
|
|
}
|
|
}
|
|
|
|
[Serializable, NetSerializable]
|
|
public sealed class VendingMachineWithdrawMessage : BoundUserInterfaceMessage
|
|
{
|
|
}
|
|
// WD EDIT END
|
|
|
|
[Serializable, NetSerializable]
|
|
public sealed class VendingMachineEjectMessage : BoundUserInterfaceMessage
|
|
{
|
|
public readonly InventoryType Type;
|
|
public readonly string ID;
|
|
public VendingMachineEjectMessage(InventoryType type, string id) // WD EDIT
|
|
{
|
|
Type = type;
|
|
ID = id;
|
|
}
|
|
}
|
|
|
|
[Serializable, NetSerializable]
|
|
public enum VendingMachineUiKey
|
|
{
|
|
Key,
|
|
}
|
|
}
|