mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-05-21 09:45:48 +08:00
38 lines
1.2 KiB
C#
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 = "";
|
|
} |