/// A class to handle updating ConfigProviders automatically
/// A class to handle updating ConfigProviders automatically
/// </summary>
/// </summary>
publicstaticclassConfig
publicclassConfig
{
{
staticConfig()
staticConfig()
{
{
//JsonConfigProvider.RegisterConfig();
//JsonConfigProvider.RegisterConfig();
}
}
/// <inheritdoc />
/// <summary>
/// Defines the type of the <see cref="T:IPA.Config.IConfigProvider" />
/// </summary>
[AttributeUsage(AttributeTargets.Class)]
publicclassTypeAttribute:Attribute
{
/// <summary>
/// The extension associated with this type, without the '.'
/// </summary>
/// <value>the extension to register the config provider as</value>
// ReSharper disable once UnusedAutoPropertyAccessor.Global
publicstringExtension{get;privateset;}
/// <inheritdoc />
/// <summary>
/// Constructs the attribute with a specified extension.
/// </summary>
/// <param name="ext">the extension associated with this type, without the '.'</param>
publicTypeAttribute(stringext)
{
Extension=ext;
}
}
/// <inheritdoc />
/// <summary>
/// <summary>
/// Specifies that a particular parameter is preferred to be a specific type of <see cref="T:IPA.Config.IConfigProvider" />. If it is not available, also specifies backups. If none are available, the default is used.
/// Specifies that a particular parameter is preferred to be a specific type of <see cref="T:IPA.Config.IConfigProvider" />. If it is not available, also specifies backups. If none are available, the default is used.
/// </summary>
/// </summary>
@ -73,10 +48,10 @@ namespace IPA.Config
}
}
}
}
/// <inheritdoc />
/// <summary>
/// <summary>
/// Specifies a preferred config name, instead of using the plugin's name.
/// Specifies a preferred config name, instead of using the plugin's name.