using Content.Shared.FixedPoint;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization;
namespace Content.Shared.Store;
[Serializable, NetSerializable]
public enum StoreUiKey : byte
{
Key
}
public sealed class StoreUpdateState : BoundUserInterfaceState
public readonly HashSet<ListingData> Listings;
public readonly Dictionary<ProtoId<CurrencyPrototype>, FixedPoint2> Balance;
public readonly bool ShowFooter;
public readonly bool AllowRefund;
public StoreUpdateState(HashSet<ListingData> listings, Dictionary<ProtoId<CurrencyPrototype>, FixedPoint2> balance, bool showFooter, bool allowRefund)
Listings = listings;
Balance = balance;
ShowFooter = showFooter;
AllowRefund = allowRefund;
/// <summary>
/// initializes miscellaneous data about the store.
/// </summary>
public sealed class StoreInitializeState : BoundUserInterfaceState
public readonly string Name;
public StoreInitializeState(string name)
Name = name;
public sealed class StoreRequestUpdateInterfaceMessage : BoundUserInterfaceMessage
public sealed class StoreBuyListingMessage : BoundUserInterfaceMessage
public ListingData Listing;
public StoreBuyListingMessage(ListingData listing)
Listing = listing;
public sealed class StoreRequestWithdrawMessage : BoundUserInterfaceMessage
public string Currency;
public int Amount;
public StoreRequestWithdrawMessage(string currency, int amount)
Currency = currency;
Amount = amount;
/// Used when the refund button is pressed
public sealed class StoreRequestRefundMessage : BoundUserInterfaceMessage