public string GetMarketHash(SkinWear? wear) { if (wear == null) { return Name + " " + BaseWeapon; } return Name + " " + BaseWeapon + " " + wear.Value.WithParentheses(); }
public static Price? GetSkinPrice(Skin skin, SkinWear wear) { string hash = skin.GetMarketHash(wear); MarketPricing pricing = DataManager.MarketPrices.GetPricing(hash); if (pricing != null) { return pricing.Price; } else { VersatileIO.Warning(" No market pricing found for {0} {1}.", wear.ToReadableString(), skin.Name); return null; } }
public CheckedPrice(Skin skin, SkinWear wear, Price price) { Skin = skin; SkinWear = wear; _price = price; }
public static PriceRange? GetSkinPrice(Item item, SkinWear wear) { Skin skin = item.GetSkin(); Price? p = CmdSkins.GetSkinPrice(skin, wear); if (p == null) { return null; } return new PriceRange(p.Value); }