mirror of
https://github.com/osukey/osukey.git
synced 2025-05-09 15:47:38 +09:00
Remove updated/removed flow method mapping
This commit is contained in:
parent
c9257e9ecc
commit
fe8a5e867d
@ -232,10 +232,6 @@ namespace osu.Game.Beatmaps
|
|||||||
return beatmapModelManager.IsAvailableLocally(model);
|
return beatmapModelManager.IsAvailableLocally(model);
|
||||||
}
|
}
|
||||||
|
|
||||||
public event Action<BeatmapSetInfo>? ItemUpdated;
|
|
||||||
|
|
||||||
public event Action<BeatmapSetInfo>? ItemRemoved;
|
|
||||||
|
|
||||||
public void Update(BeatmapSetInfo item)
|
public void Update(BeatmapSetInfo item)
|
||||||
{
|
{
|
||||||
beatmapModelManager.Update(item);
|
beatmapModelManager.Update(item);
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||||
// 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;
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace osu.Game.Database
|
namespace osu.Game.Database
|
||||||
@ -13,16 +12,6 @@ namespace osu.Game.Database
|
|||||||
public interface IModelManager<TModel>
|
public interface IModelManager<TModel>
|
||||||
where TModel : class
|
where TModel : class
|
||||||
{
|
{
|
||||||
/// <summary>
|
|
||||||
/// Fired when an item is updated.
|
|
||||||
/// </summary>
|
|
||||||
event Action<TModel> ItemUpdated;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Fired when an item is removed.
|
|
||||||
/// </summary>
|
|
||||||
event Action<TModel> ItemRemoved;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Perform an update of the specified item.
|
/// Perform an update of the specified item.
|
||||||
/// TODO: Support file additions/removals.
|
/// TODO: Support file additions/removals.
|
||||||
|
@ -251,18 +251,6 @@ namespace osu.Game.Scoring
|
|||||||
|
|
||||||
#region Implementation of IModelManager<ScoreInfo>
|
#region Implementation of IModelManager<ScoreInfo>
|
||||||
|
|
||||||
public event Action<ScoreInfo> ItemUpdated
|
|
||||||
{
|
|
||||||
add => scoreModelManager.ItemUpdated += value;
|
|
||||||
remove => scoreModelManager.ItemUpdated -= value;
|
|
||||||
}
|
|
||||||
|
|
||||||
public event Action<ScoreInfo> ItemRemoved
|
|
||||||
{
|
|
||||||
add => scoreModelManager.ItemRemoved += value;
|
|
||||||
remove => scoreModelManager.ItemRemoved -= value;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Update(ScoreInfo item)
|
public void Update(ScoreInfo item)
|
||||||
{
|
{
|
||||||
scoreModelManager.Update(item);
|
scoreModelManager.Update(item);
|
||||||
|
@ -24,22 +24,6 @@ namespace osu.Game.Stores
|
|||||||
public abstract class RealmArchiveModelManager<TModel> : RealmArchiveModelImporter<TModel>, IModelManager<TModel>, IModelFileManager<TModel, RealmNamedFileUsage>
|
public abstract class RealmArchiveModelManager<TModel> : RealmArchiveModelImporter<TModel>, IModelManager<TModel>, IModelFileManager<TModel, RealmNamedFileUsage>
|
||||||
where TModel : RealmObject, IHasRealmFiles, IHasGuidPrimaryKey, ISoftDelete
|
where TModel : RealmObject, IHasRealmFiles, IHasGuidPrimaryKey, ISoftDelete
|
||||||
{
|
{
|
||||||
public event Action<TModel>? ItemUpdated
|
|
||||||
{
|
|
||||||
// This may be brought back for beatmaps to ease integration.
|
|
||||||
// The eventual goal would be not requiring this and using realm subscriptions in its place.
|
|
||||||
add => throw new NotImplementedException();
|
|
||||||
remove => throw new NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
public event Action<TModel>? ItemRemoved
|
|
||||||
{
|
|
||||||
// This may be brought back for beatmaps to ease integration.
|
|
||||||
// The eventual goal would be not requiring this and using realm subscriptions in its place.
|
|
||||||
add => throw new NotImplementedException();
|
|
||||||
remove => throw new NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
private readonly RealmFileStore realmFileStore;
|
private readonly RealmFileStore realmFileStore;
|
||||||
|
|
||||||
protected RealmArchiveModelManager(Storage storage, RealmContextFactory contextFactory)
|
protected RealmArchiveModelManager(Storage storage, RealmContextFactory contextFactory)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user