using System.Collections.Generic;
namespace BetterGenshinImpact.Model.MaskMap;
public class MaskMapPoint
{
public string Id { get; set; } = string.Empty;
public double X { get; set; }
public double Y { get; set; }
///
/// 游戏中的坐标 X
///
public double GameX { get; set; }
///
/// 游戏中的坐标 Y
///
public double GameY { get; set; }
///
/// 2048级别游戏图像地图的坐标 X
///
public double ImageX { get; set; }
///
/// 2048级别游戏图像地图的坐标 Y
///
public double ImageY { get; set; }
public string LabelId { get; set; } = string.Empty;
public List VideoUrls { get; set; } = new();
public bool Contains(double px, double py)
{
return px >= X - MaskMapPointStatic.Width / 2 && px <= X + MaskMapPointStatic.Width / 2 &&
py >= Y - MaskMapPointStatic.Height / 2 && py <= Y + MaskMapPointStatic.Height / 2;
}
}
public class MaskMapPointStatic
{
public static readonly int Width = 32;
public static readonly int Height = 32;
}