Adapt resource manager to URI and list pattern.
This commit is contained in:
@@ -2,14 +2,10 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Cryville.Crtr.Browsing {
|
||||
public interface IResourceManager<T> {
|
||||
int ItemCount { get; }
|
||||
public interface IResourceManager<T> : IReadOnlyList<T> {
|
||||
Uri GetItemUri(int id);
|
||||
|
||||
ResourceItemMeta GetItemMeta(int id);
|
||||
T GetItemDetail(int id);
|
||||
string GetItemPath(int id);
|
||||
|
||||
bool ImportItemFrom(string path);
|
||||
bool ImportItemFrom(Uri uri);
|
||||
string[] GetSupportedFormats();
|
||||
IReadOnlyDictionary<string, string> GetPresetPaths();
|
||||
|
||||
|
Reference in New Issue
Block a user