using System;
namespace BepInEx.Configuration
{
//todo value range
///
/// Metadata of a .
///
public class ConfigDescription
{
///
/// Create a new description.
///
/// Text describing the function of the setting and any notes or warnings.
public ConfigDescription(string description)
{
Description = description ?? throw new ArgumentNullException(nameof(description));
}
///
/// Text describing the function of the setting and any notes or warnings.
///
public string Description { get; }
///
/// Convert the description object into a form suitable for writing into a config file.
///
public string ToSerializedString()
{
return $"# {Description.Replace("\n", "\n# ")}";
}
}
}