Some more plugin stuff, lovely commit messages ikr

This commit is contained in:
SpoinkyNL committed 2018-01-08 19:10:59 +01:00
1 parent c761c880ed
commit 8760b7f838
16 files changed
+216 -108

No files matched your search

-17
View File
@@ -1,17 +0,0 @@
using System.Collections.Generic;
using Artemis.Core.Plugins.Interfaces;
using Newtonsoft.Json;
namespace Artemis.Core.Models
{
public class ModuleInfo
{
public string Name { get; set; }
public string Version { get; set; }
public string MainFile { get; set; }
public IReadOnlyList<string> SubFiles { get; set; }
[JsonIgnore]
public IPlugin Plugin { get; set; }
}
}
+40
View File
@@ -0,0 +1,40 @@
using Artemis.Plugins.Interfaces;
using Newtonsoft.Json;
namespace Artemis.Core.Models
{
public class PluginInfo
{
/// <summary>
/// The name of the plugin
/// </summary>
public string Name { get; set; }
/// <summary>
/// The version of the plugin
/// </summary>
public string Version { get; set; }
/// <summary>
/// The file implementing IPlugin, loaded on startup
/// </summary>
public string Main { get; set; }
/// <summary>
/// The file implementing IPluginViewModel, loaded when opened in the UI
/// </summary>
public string ViewModel { get; set; }
/// <summary>
/// The instantiated plugin, available after successful load
/// </summary>
[JsonIgnore]
public IPlugin Plugin { get; set; }
/// <summary>
/// Full path to the plugin's current folder
/// </summary>
[JsonIgnore]
public string Folder { get; set; }
}
}