/// <summary> /// Создает новый предмет в инвентаре /// </summary> private static InventoryItem CreateItem(long ownerId, InventoryType type, int count) { return(new InventoryItem { OwnerId = ownerId, Name = type.GetDescription(), Type = type, Count = count, CountInHouse = 0, Model = (int)Validator.INVALID_ID }); }