定义一个物品描述信息
예제 #1
0
 /// <summary>
 /// 创建 Item 对象
 /// </summary>
 /// <param name="descriptor">物品描述</param>
 /// <param name="quantity">物品数量</param>
 public Item(ItemDescriptor descriptor, int quantity)
 {
     ItemDescriptor = descriptor;
     Quantity       = quantity;
 }
예제 #2
0
파일: Item.cs 프로젝트: Ivony/HelloWorld
 /// <summary>
 /// 创建 Item 对象
 /// </summary>
 /// <param name="descriptor">物品描述</param>
 /// <param name="quantity">物品数量</param>
 public Item( ItemDescriptor descriptor, int quantity )
 {
     ItemDescriptor = descriptor;
       Quantity = quantity;
 }