Add support for WPF controls in plugins and method parameters in plugin commands
This commit is contained in:
22
Torch.API/Plugins/PluginAttribute.cs
Normal file
22
Torch.API/Plugins/PluginAttribute.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Torch.API.Plugins
|
||||
{
|
||||
public class PluginAttribute : Attribute
|
||||
{
|
||||
public string Name { get; }
|
||||
public Version Version { get; }
|
||||
public Guid Guid { get; }
|
||||
|
||||
public PluginAttribute(string name, string version, string guid)
|
||||
{
|
||||
Name = name;
|
||||
Version = Version.Parse(version);
|
||||
Guid = Guid.Parse(guid);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user