コード例 #1
0
        public void AddItem(ItemType itemType, decimal amount)
        {
            Items [itemType] = (decimal)Items [itemType] + amount;

            if (Demands != null && Demands.GetDemandAmount(itemType) > 0)
            {
                Demands.RemoveDemand(itemType, amount);
            }
        }