Files
better-genshin-impact/BetterGenshinImpact/GameTask/AutoGeniusInvokation/AutoGeniusInvokationConfig.cs
2024-08-14 18:01:02 +08:00

50 lines
1.4 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using CommunityToolkit.Mvvm.ComponentModel;
using OpenCvSharp;
using System;
using System.Collections.Generic;
namespace BetterGenshinImpact.GameTask.AutoGeniusInvokation;
/// <summary>
/// 自动打牌配置
/// </summary>
[Serializable]
public partial class AutoGeniusInvokationConfig : ObservableObject
{
[ObservableProperty] private string _strategyName = "1.莫娜砂糖琴";
[ObservableProperty] private int _sleepDelay = 0;
public List<Rect> DefaultCharacterCardRects { get; set; } =
[
new(667, 632, 165, 282),
new(877, 632, 165, 282),
new(1088, 632, 165, 282)
];
/// <summary>
/// 骰子数量文字识别区域
/// </summary>
public Rect MyDiceCountRect { get; } = new(68, 642, 25, 31); // 42,47
///// <summary>
///// 角色卡牌区域向左扩展距离包含HP区域
///// </summary>
//public int CharacterCardLeftExtend { get; } = 20;
///// <summary>
///// 角色卡牌区域向右扩展距离,包含充能区域
///// </summary>
//public int CharacterCardRightExtend { get; } = 14;
/// <summary>
/// 出战角色卡牌区域向上或者向下的距离差
/// </summary>
public int ActiveCharacterCardSpace { get; set; } = 41;
/// <summary>
/// HP区域 在 角色卡牌区域 的相对位置
/// </summary>
public Rect CharacterCardExtendHpRect { get; } = new(-20, 0, 60, 55);
}