Add resource action. Implement play chart and import resource action.

This commit is contained in:
2023-11-23 00:02:55 +08:00
parent 33c0826f3b
commit ed496859cb
8 changed files with 117 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
using System;
namespace Cryville.Crtr.Browsing.Actions {
public interface IResourceAction {
string Name { get; }
int Priority { get; }
void Invoke(Uri uri, object resource);
}
public interface IResourceAction<T> : IResourceAction {
void Invoke(Uri uri, T resource);
}
}