using CommunityToolkit.Mvvm.ComponentModel; using System; namespace BetterGenshinImpact.GameTask.AutoFishing; /// /// 自动钓鱼配置 /// [Serializable] public partial class AutoFishingConfig : ObservableObject { /// /// 触发器是否启用 /// 启用后: /// 1. 自动判断是否进入钓鱼状态 /// 2. 自动提杆 /// 3. 自动拉条 /// [ObservableProperty] private bool _enabled = false; ///// ///// 鱼儿上钩文字识别区域 ///// 暂时无用 ///// //[ObservableProperty] private Rect _fishHookedRecognitionArea = Rect.Empty; /// /// 自动抛竿是否启用 /// [ObservableProperty] private bool _autoThrowRodEnabled = false; /// /// 自动抛竿未上钩超时时间(秒) /// [ObservableProperty] private int _autoThrowRodTimeOut = 15; /// /// 整个任务超时时间 /// [ObservableProperty] private int _wholeProcessTimeoutSeconds = 300; /// /// 昼夜策略 /// 钓全天的鱼、还是只钓白天或夜晚的鱼 /// [ObservableProperty] private FishingTimePolicy _fishingTimePolicy = FishingTimePolicy.All; /// /// torch库文件地址 /// [ObservableProperty] private string _torchDllFullPath = @"C:\torch\lib\torch_cpu.dll"; }