mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-19 15:51:48 +00:00
23 lines
655 B
C#
23 lines
655 B
C#
using System;
|
|
using BepInEx.Configuration;
|
|
using MiraAPI.LocalSettings.SettingTypes;
|
|
|
|
namespace MiraAPI.LocalSettings.Attributes;
|
|
|
|
/// <summary>
|
|
/// Creates a toggle setting for the <see cref="ConfigEntry{T}"/>.
|
|
/// </summary>
|
|
/// <inheritdoc/>
|
|
[AttributeUsage(AttributeTargets.Property)]
|
|
public class LocalToggleSettingAttribute(
|
|
string? name = null,
|
|
string? description = null
|
|
) : LocalSettingAttribute(name, description)
|
|
{
|
|
/// <inheritdoc/>
|
|
internal override LocalToggleSetting CreateSetting(Type tab, ConfigEntryBase configEntryBase)
|
|
{
|
|
return new LocalToggleSetting(tab, configEntryBase, name, description);
|
|
}
|
|
}
|