Rename interface

- Fix wrong inheritance in ArchiveModelManager
- Add license headers
This commit is contained in:
naoey
2019-06-11 23:47:05 +05:30
parent 4a6074865e
commit c320b6110c
4 changed files with 11 additions and 16 deletions

View File

@ -29,7 +29,7 @@ namespace osu.Game.Database
/// </summary>
/// <typeparam name="TModel">The model type.</typeparam>
/// <typeparam name="TFileModel">The associated file join type.</typeparam>
public abstract class ArchiveModelManager<TModel, TFileModel> : ICanAcceptFiles, IModelManager
public abstract class ArchiveModelManager<TModel, TFileModel> : ICanAcceptFiles, IModelManager<TModel>
where TModel : class, IHasFiles<TFileModel>, IHasPrimaryKey, ISoftDelete
where TFileModel : INamedFileInfo, new()
{
@ -44,7 +44,7 @@ namespace osu.Game.Database
/// Fired when a new <see cref="TModel"/> becomes available in the database.
/// This is not guaranteed to run on the update thread.
/// </summary>
public event ItemAddedDelegate ItemAdded;
public event Action<TModel, bool> ItemAdded;
/// <summary>
/// Fired when a <see cref="TModel"/> is removed from the database.