mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 05:52:54 +08:00
Make selectedHitObjects into a HashSet for quick Contains checks
This commit is contained in:
parent
87065a0b13
commit
995ecb7d94
@ -3,6 +3,7 @@
|
||||
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using osu.Framework.Extensions.IEnumerableExtensions;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
using osu.Framework.Graphics.Primitives;
|
||||
@ -27,7 +28,7 @@ namespace osu.Game.Rulesets.Edit.Layers.Selection
|
||||
private SelectionBox selectionBox;
|
||||
private CaptureBox captureBox;
|
||||
|
||||
private readonly List<DrawableHitObject> selectedHitObjects = new List<DrawableHitObject>();
|
||||
private readonly HashSet<DrawableHitObject> selectedHitObjects = new HashSet<DrawableHitObject>();
|
||||
|
||||
protected override bool OnMouseDown(InputState state, MouseDownEventArgs args)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user