mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 10:33:30 +08:00
Avoid some further enumerator allocations
This commit is contained in:
parent
6e1b4152c0
commit
80abf6aab3
@ -2,6 +2,8 @@
|
|||||||
// See the LICENCE file in the repository root for full licence text.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using osu.Framework.Extensions.ListExtensions;
|
||||||
|
using osu.Framework.Lists;
|
||||||
|
|
||||||
namespace osu.Game.Screens.Select.Carousel
|
namespace osu.Game.Screens.Select.Carousel
|
||||||
{
|
{
|
||||||
@ -12,7 +14,7 @@ namespace osu.Game.Screens.Select.Carousel
|
|||||||
{
|
{
|
||||||
public override DrawableCarouselItem? CreateDrawableRepresentation() => null;
|
public override DrawableCarouselItem? CreateDrawableRepresentation() => null;
|
||||||
|
|
||||||
public IReadOnlyList<CarouselItem> Items => items;
|
public SlimReadOnlyListWrapper<CarouselItem> Items => items.AsSlimReadOnly();
|
||||||
|
|
||||||
public int TotalItemsNotFiltered { get; private set; }
|
public int TotalItemsNotFiltered { get; private set; }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user