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

35 lines
841 B
C#

using System;
using System.Collections.Generic;
namespace Cryville.Crtr.Browsing {
public interface IResourceManager {
int Count { get; }
object this[int index] { get; }
Uri GetItemUri(int index);
event Action ItemChanged;
bool IsReadOnly { get; }
bool ImportFrom(Uri uri);
void RemoveAt(int index);
[Obsolete]
string[] GetSupportedFormats();
[Obsolete]
IReadOnlyDictionary<string, string> GetPresetPaths();
void Activate();
void Deactivate();
}
public interface IResourceManager<T> : IResourceManager {
new T this[int index] { get; }
}
public interface IPathedResourceManager<T> : IResourceManager<T> {
event Action DirectoryChanged;
IList<string> CurrentDirectory { get; }
void ChangeDirectory(IEnumerable<string> dir);
void OpenDirectory(int index);
void ReturnToDirectory(int index);
}
}