コード例 #1
0
        public string 요약된인벤토리확인()
        {
            string result = "";

            for (var i = 0; i < 인벤토리.Count; i++)
            {
                string 아이템이름 = 인벤토리.ElementAt(i).Key;
                int    아이템개수 = 인벤토리.ElementAt(i).Value;
                아이템    아이템   = ItemFactory.아이템객체가져오기(아이템이름);
                result += "개수 : [ " + 아이템개수 + " ] " + 아이템.아이템상세정보();
            }
            return(result);
        }
コード例 #2
0
        public string 인벤토리확인()
        {
            string result = "";

            for (var i = 0; i < 인벤토리.Count; i++)
            {
                string 아이템이름 = 인벤토리.ElementAt(i).Key;
                int    아이템개수 = 인벤토리.ElementAt(i).Value;
                for (var j = 0; j < 아이템개수; j++)
                {
                    아이템 아이템 = ItemFactory.아이템객체가져오기(아이템이름);
                    result += 아이템.아이템상세정보();
                }
            }
            return(result);
        }