定义一个物品描述信息
Exemple #1
0
 /// <summary>
 /// 创建 Item 对象
 /// </summary>
 /// <param name="descriptor">物品描述</param>
 /// <param name="quantity">物品数量</param>
 public Item(ItemDescriptor descriptor, int quantity)
 {
     ItemDescriptor = descriptor;
     Quantity       = quantity;
 }
Exemple #2
0
 /// <summary>
 /// 创建 Item 对象
 /// </summary>
 /// <param name="descriptor">物品描述</param>
 /// <param name="quantity">物品数量</param>
 public Item( ItemDescriptor descriptor, int quantity )
 {
     ItemDescriptor = descriptor;
       Quantity = quantity;
 }