Split out legacy import path from realm manager

This commit is contained in:
Dean Herbert
2022-07-27 15:04:09 +09:00
parent c30e8047ab
commit 6b73f7c7ec
10 changed files with 237 additions and 333 deletions

View File

@ -14,11 +14,6 @@ namespace osu.Game.Collections
/// </summary>
public class BeatmapCollection
{
/// <summary>
/// Invoked whenever any change occurs on this <see cref="BeatmapCollection"/>.
/// </summary>
public event Action Changed;
/// <summary>
/// The collection's name.
/// </summary>
@ -33,17 +28,5 @@ namespace osu.Game.Collections
/// The date when this collection was last modified.
/// </summary>
public DateTimeOffset LastModifyDate { get; private set; } = DateTimeOffset.UtcNow;
public BeatmapCollection()
{
BeatmapHashes.CollectionChanged += (_, _) => onChange();
Name.ValueChanged += _ => onChange();
}
private void onChange()
{
LastModifyDate = DateTimeOffset.Now;
Changed?.Invoke();
}
}
}