Ejemplo n.º 1
0
        public string GetMarketHash(SkinWear? wear)
        {
            if (wear == null)
            {
                return Name + " " + BaseWeapon;
            }

            return Name + " " + BaseWeapon + " " + wear.Value.WithParentheses();
        }
Ejemplo n.º 2
0
        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;
            }
        }
Ejemplo n.º 3
0
 public CheckedPrice(Skin skin, SkinWear wear, Price price)
 {
     Skin = skin;
     SkinWear = wear;
     _price = price;
 }
Ejemplo n.º 4
0
        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);
        }