using CommunityToolkit.Mvvm.ComponentModel; using System; namespace BetterGenshinImpact.GameTask.AutoEat; /// /// 自动吃药配置 /// [Serializable] public partial class AutoEatConfig : ObservableObject { /// /// 是否启用自动吃药 /// [ObservableProperty] private bool _enabled = false; /// /// 是否显示吃药通知 /// [ObservableProperty] private bool _showNotification = true; /// /// 检测间隔时间(毫秒) /// [ObservableProperty] private int _checkInterval = 150; /// /// 吃药间隔时间(毫秒) /// 防止频繁吃药 /// [ObservableProperty] private int _eatInterval = 1000; /// /// 测试食物名称 /// [ObservableProperty] private string? _testFoodName; /// /// 默认的攻击类料理名称 /// [ObservableProperty] private string? _defaultAtkBoostingDishName = "炸萝卜丸子"; /// /// 默认的冒险类料理名称 /// [ObservableProperty] private string? _defaultAdventurersDishName; /// /// 默认的防御类料理名称 /// [ObservableProperty] private string? _defaultDefBoostingDishName; }