定义一个物品描述信息
示例#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;
 }