/// <summary> /// 创建 Item 对象 /// </summary> /// <param name="descriptor">物品描述</param> /// <param name="quantity">物品数量</param> public Item(ItemDescriptor descriptor, int quantity) { ItemDescriptor = descriptor; Quantity = quantity; }
/// <summary> /// 创建 Item 对象 /// </summary> /// <param name="descriptor">物品描述</param> /// <param name="quantity">物品数量</param> public Item( ItemDescriptor descriptor, int quantity ) { ItemDescriptor = descriptor; Quantity = quantity; }