VPet/VPet-Simulator.Core/Handle/IController.cs
2023-06-01 18:16:45 +10:00

62 lines
1.7 KiB
C#

namespace VPet_Simulator.Core
{
/// <summary>
/// 桌宠控制器 需自行实现
/// </summary>
public interface IController
{
/// <summary>
/// 移动桌宠位置 (自带缩放倍率)
/// </summary>
/// <param name="X">X轴</param>
/// <param name="Y">Y轴</param>
void MoveWindows(double X, double Y);
/// <summary>
/// 获取桌宠距离左侧的位置
/// </summary>
double GetWindowsDistanceLeft();
/// <summary>
/// 获取桌宠距离右侧的位置
/// </summary>
double GetWindowsDistanceRight();
/// <summary>
/// 获取桌宠距离上方的位置
/// </summary>
double GetWindowsDistanceUp();
/// <summary>
/// 获取桌宠距离下方的位置
/// </summary>
double GetWindowsDistanceDown();
///// <summary>
///// 窗体宽度
///// </summary>
//double WindowsWidth { get; set; }
///// <summary>
///// 窗体高度
///// </summary>
//double WindowsHight { get; set; }
/// <summary>
/// 缩放比例
/// </summary>
double ZoomRatio { get; }
/// <summary>
/// 按多久视为长按 单位毫秒
/// </summary>
int PressLength { get; }
/// <summary>
/// 显示面板窗体
/// </summary>
void ShowPanel();
/// <summary>
/// 启用计算等数据功能
/// </summary>
bool EnableFunction { get; }
/// <summary>
/// 互动周期
/// </summary>
int InteractionCycle { get; }
}
}