示例#1
0
        private static Dictionary <ISalable, int[]> GetAllClothing()
        {
            Dictionary <ISalable, int[]> stock = new Dictionary <ISalable, int[]>();

            foreach (KeyValuePair <int, string> v in Game1.content.Load <Dictionary <int, string> >("Data\\ClothingInformation"))
            {
                Clothing c = new Clothing(v.Key);
                stock.Add(c, new int[]
                {
                    Config.FreeClothingCatalogue ? 0 : (int)Math.Round(c.salePrice() * Config.PriceMult),
                    int.MaxValue
                });
            }
            return(stock);
        }