* Uplink menu has icons now * Add item icons * Add few descriptions * Better withdraw window * Finished with withdraw window * Refactored withdraw ui and fix some bugs * Basic withdraw * Quick fixes * Removed uplink listing for TCs * Move slider to separate control * Final touches * A bit more * Not again... * Fixed names * Address review * Fixed robust * Non necessary check
42 lines
1.1 KiB
C#
42 lines
1.1 KiB
C#
using Content.Shared.PDA;
|
|
using Robust.Shared.GameObjects;
|
|
using Robust.Shared.Serialization;
|
|
using Robust.Shared.Utility;
|
|
using System;
|
|
|
|
namespace Content.Shared.Traitor.Uplink
|
|
{
|
|
[Serializable, NetSerializable]
|
|
public class UplinkListingData : ComponentState, IEquatable<UplinkListingData>
|
|
{
|
|
public readonly string ItemId;
|
|
public readonly int Price;
|
|
public readonly UplinkCategory Category;
|
|
public readonly string Description;
|
|
public readonly string ListingName;
|
|
public readonly SpriteSpecifier? Icon;
|
|
|
|
public UplinkListingData(string listingName, string itemId,
|
|
int price, UplinkCategory category,
|
|
string description, SpriteSpecifier? icon)
|
|
{
|
|
ListingName = listingName;
|
|
Price = price;
|
|
Category = category;
|
|
Description = description;
|
|
ItemId = itemId;
|
|
Icon = icon;
|
|
}
|
|
|
|
public bool Equals(UplinkListingData? other)
|
|
{
|
|
if (other == null)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
return ItemId == other.ItemId;
|
|
}
|
|
}
|
|
}
|