Add IResourceMeta
constraint on resource action.
This commit is contained in:
@@ -28,7 +28,7 @@ namespace Cryville.Crtr.Browsing.Actions {
|
||||
public void Register(IResourceAction action) {
|
||||
Register(typeof(object), action);
|
||||
}
|
||||
public void Register<T>(IResourceAction<T> action) {
|
||||
public void Register<T>(IResourceAction<T> action) where T : IResourceMeta {
|
||||
Register(typeof(T), action);
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace Cryville.Crtr.Browsing.Actions {
|
||||
public void Unregister(IResourceAction action) {
|
||||
Unregister(typeof(object), action);
|
||||
}
|
||||
public void Unregister<T>(IResourceAction<T> action) {
|
||||
public void Unregister<T>(IResourceAction<T> action) where T : IResourceMeta {
|
||||
Unregister(typeof(T), action);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user