mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-04-22 21:59:55 +08:00
33 lines
1.2 KiB
C#
33 lines
1.2 KiB
C#
using BetterGenshinImpact.Core.Recognition;
|
|
using OpenCvSharp;
|
|
|
|
namespace BetterGenshinImpact.GameTask.GameLoading.Assets;
|
|
|
|
public class GameLoadingAssets
|
|
{
|
|
public RecognitionObject EnterGameRo;
|
|
public RecognitionObject WelkinMoonRo;
|
|
|
|
public GameLoadingAssets()
|
|
{
|
|
var info = TaskContext.Instance().SystemInfo;
|
|
|
|
EnterGameRo = new RecognitionObject
|
|
{
|
|
Name = "EnterGame",
|
|
RecognitionType = RecognitionTypes.TemplateMatch,
|
|
TemplateImageMat = GameTaskManager.LoadAssetImage("AutoWood", "exit_welcome.png"),
|
|
RegionOfInterest = new Rect(0, info.CaptureAreaRect.Height / 2, info.CaptureAreaRect.Width, info.CaptureAreaRect.Height - info.CaptureAreaRect.Height / 2),
|
|
DrawOnWindow = false
|
|
}.InitTemplate();
|
|
|
|
WelkinMoonRo = new RecognitionObject
|
|
{
|
|
Name = "WelkinMoon",
|
|
RecognitionType = RecognitionTypes.TemplateMatch,
|
|
TemplateImageMat = GameTaskManager.LoadAssetImage("GameLoading", "welkin_moon_logo.png"),
|
|
RegionOfInterest = new Rect(0, info.CaptureAreaRect.Height / 2, info.CaptureAreaRect.Width, info.CaptureAreaRect.Height / 2),
|
|
DrawOnWindow = false
|
|
}.InitTemplate();
|
|
}
|
|
} |