mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-29 20:03:41 +01:00
25 lines
770 B
C#
25 lines
770 B
C#
using System;
|
|
|
|
namespace Dalamud.IoC
|
|
{
|
|
/// <summary>
|
|
/// This attribute indicates the version of a service module that is required for the plugin to load.
|
|
/// </summary>
|
|
[AttributeUsage(AttributeTargets.Parameter | AttributeTargets.Property)]
|
|
public class RequiredVersionAttribute : Attribute
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="RequiredVersionAttribute"/> class.
|
|
/// </summary>
|
|
/// <param name="version">The required version.</param>
|
|
public RequiredVersionAttribute(string version)
|
|
{
|
|
this.Version = new(version);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the required version.
|
|
/// </summary>
|
|
public Version Version { get; }
|
|
}
|
|
}
|