mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-01 13:23:40 +01:00
refactor: new code style in PluginDefinition.cs
This commit is contained in:
parent
c5716cf93e
commit
0d8d9e57d4
1 changed files with 23 additions and 20 deletions
|
|
@ -6,100 +6,103 @@ using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace Dalamud.Plugin
|
namespace Dalamud.Plugin
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class containing information about a plugin.
|
||||||
|
/// </summary>
|
||||||
public class PluginDefinition
|
public class PluginDefinition
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The author/s of the plugin.
|
/// Gets or sets the author/s of the plugin.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string Author { get; set; }
|
public string Author { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The public name of the plugin.
|
/// Gets or sets the public name of the plugin.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The internal name of the plugin, which should match the assembly name of the plugin.
|
/// Gets or sets the internal name of the plugin, which should match the assembly name of the plugin.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string InternalName { get; set; }
|
public string InternalName { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The current assembly version of the plugin.
|
/// Gets or sets the current assembly version of the plugin.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string AssemblyVersion { get; set; }
|
public string AssemblyVersion { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The current testing assembly version of the plugin.
|
/// Gets or sets the current testing assembly version of the plugin.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string TestingAssemblyVersion { get; set; }
|
public string TestingAssemblyVersion { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Defines if the plugin is only available for testing.
|
/// Gets or sets a value indicating whether the plugin is only available for testing.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool IsTestingExclusive { get; set; }
|
public bool IsTestingExclusive { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A description of the plugins functions.
|
/// Gets or sets a description of the plugins functions.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string Description { get; set; }
|
public string Description { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The version of the game this plugin works with.
|
/// Gets or sets the version of the game this plugin works with.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string ApplicableVersion { get; set; }
|
public string ApplicableVersion { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// An URL to the website or source code of the plugin.
|
/// Gets or sets an URL to the website or source code of the plugin.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string RepoUrl { get; set; }
|
public string RepoUrl { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// List of tags defined on the plugin.
|
/// Gets or sets a list of tags defined on the plugin.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public List<string> Tags { get; set; }
|
public List<string> Tags { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether or not the plugin is hidden in the plugin installer.
|
/// Gets or sets a value indicating whether or not the plugin is hidden in the plugin installer.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool IsHide { get; set; }
|
public bool IsHide { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <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.
|
/// Gets or sets 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>
|
/// </summary>
|
||||||
public int DalamudApiLevel { get; set; }
|
public int DalamudApiLevel { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The number of downloads this plugin has.
|
/// Gets or sets the number of downloads this plugin has.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public long DownloadCount { get; set; }
|
public long DownloadCount { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The last time this plugin was updated.
|
/// Gets or sets the last time this plugin was updated.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public long LastUpdate { get; set; }
|
public long LastUpdate { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Number of the repo.
|
/// Gets or sets the index of the third party repo.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int RepoNumber { get; set; }
|
public int RepoNumber { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Download link used to install the plugin.
|
/// Gets or sets the download link used to install the plugin.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string DownloadLinkInstall { get; set; }
|
public string DownloadLinkInstall { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Download link used to update the plugin.
|
/// Gets or sets the download link used to update the plugin.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string DownloadLinkUpdate { get; set; }
|
public string DownloadLinkUpdate { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Download link used to get testing versions of the plugin.
|
/// Gets or sets the download link used to get testing versions of the plugin.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string DownloadLinkTesting { get; set; }
|
public string DownloadLinkTesting { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Load priority for this plugin. Higher values means higher priority. 0 is default priority.
|
/// Gets or sets the load priority for this plugin. Higher values means higher priority. 0 is default priority.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int LoadPriority { get; set; }
|
public int LoadPriority { get; set; }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue