Files
crtr/Assets/Cryville/Crtr/Browsing/IResourceManager.cs

21 lines
536 B
C#

using System;
using System.Collections.Generic;
namespace Cryville.Crtr.Browsing {
public interface IResourceManager<T> : IReadOnlyList<T> {
Uri GetItemUri(int id);
bool ImportItemFrom(Uri uri);
string[] GetSupportedFormats();
IReadOnlyDictionary<string, string> GetPresetPaths();
event Action ItemChanged;
}
public interface IPathedResourceManager<T> : IResourceManager<T> {
string[] CurrentDirectory { get; }
void ChangeDirectory(string[] dir);
void OpenDirectory(int id);
void ReturnToDirectory(int id);
}
}