refactor: clean up some warnings

This commit is contained in:
goat 2020-08-14 02:34:03 +02:00
parent 638dacbbf4
commit b7e36fb2e6
8 changed files with 147 additions and 2 deletions

View file

@ -8,14 +8,49 @@ namespace Dalamud.Plugin
{
public class PluginDefinition
{
/// <summary>
/// The author/s of the plugin.
/// </summary>
public string Author { get; set; }
/// <summary>
/// The public name of the plugin.
/// </summary>
public string Name { get; set; }
/// <summary>
/// The internal name of the plugin, which should match the assembly name of the plugin.
/// </summary>
public string InternalName { get; set; }
/// <summary>
/// The current assembly version of the plugin.
/// </summary>
public string AssemblyVersion { get; set; }
/// <summary>
/// A description of the plugins functions.
/// </summary>
public string Description { get; set; }
/// <summary>
/// The version of the game this plugin works with.
/// </summary>
public string ApplicableVersion { get; set; }
/// <summary>
/// An URL to the website or source code of the plugin.
/// </summary>
public string RepoUrl { get; set; }
/// <summary>
/// Whether or not the plugin is hidden in the plugin installer.
/// </summary>
public bool IsHide { get; set; }
/// <summary>
/// The API level of this plugin. For the current API level, please see <see cref="PluginManager.DALAMUD_API_LEVEL"/> for the currently used API level.
/// </summary>
public int DalamudApiLevel { get; set; }
}
}

View file

@ -12,7 +12,7 @@ using Serilog;
namespace Dalamud.Plugin
{
internal class PluginManager {
public const int DALAMUD_API_LEVEL = 1;
public static int DALAMUD_API_LEVEL = 1;
private readonly Dalamud dalamud;
private readonly string pluginDirectory;