Files
better-genshin-impact/BetterGenshinImpact/GameTask/AutoFight/AutoFightParam.cs
2024-12-28 23:01:22 +08:00

38 lines
1.2 KiB
C#

using BetterGenshinImpact.GameTask.Model;
namespace BetterGenshinImpact.GameTask.AutoFight;
public class AutoFightParam : BaseTaskParam
{
public AutoFightParam(string path, AutoFightConfig autoFightConfig)
{
CombatStrategyPath = path;
Timeout = autoFightConfig.Timeout;
FightFinishDetectEnabled = autoFightConfig.FightFinishDetectEnabled;
PickDropsAfterFightEnabled = autoFightConfig.PickDropsAfterFightEnabled;
//下面参数固定,只取自动战斗里面的
autoFightConfig = TaskContext.Instance().Config.AutoFightConfig;
BattleEndProgressBarColor = autoFightConfig.BattleEndProgressBarColor;
BattleEndProgressBarColorTolerance = autoFightConfig.BattleEndProgressBarColorTolerance;
}
public AutoFightParam(string path)
{
CombatStrategyPath = path;
}
public string CombatStrategyPath { get; set; }
public bool FightFinishDetectEnabled { get; set; } = false;
public bool PickDropsAfterFightEnabled { get; set; } = false;
public int Timeout { get; set; } = 120;
public string BattleEndProgressBarColor = "";
public string BattleEndProgressBarColorTolerance = "";
}