Files
better-genshin-impact/BetterGenshinImpact/GameTask/Model/BaseAssets.cs
2024-04-04 14:10:15 +08:00

18 lines
633 B
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 BetterGenshinImpact.Model;
using Vanara.PInvoke;
namespace BetterGenshinImpact.GameTask.Model;
/// <summary>
/// 游戏各类任务的素材基类
/// 必须继承自BaseAssets
/// 且必须晚于TaskContext初始化也就是 TaskContext.Instance().IsInitialized = true;
/// </summary>
/// <typeparam name="T"></typeparam>
public class BaseAssets<T> : Singleton<T> where T : class
{
protected SystemInfo Info => TaskContext.Instance().SystemInfo;
protected RECT CaptureRect => TaskContext.Instance().SystemInfo.CaptureAreaRect;
protected double AssetScale => TaskContext.Instance().SystemInfo.AssetScale;
}