2023-06-01 08:16:45 +00:00
|
|
|
|
namespace VPet_Simulator.Core
|
2022-12-13 07:10:18 +00:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2022-12-14 18:17:13 +00:00
|
|
|
|
/// 桌宠控制器 需自行实现
|
2022-12-13 07:10:18 +00:00
|
|
|
|
/// </summary>
|
2022-12-14 18:17:13 +00:00
|
|
|
|
public interface IController
|
2022-12-13 07:10:18 +00:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2023-01-24 06:56:16 +00:00
|
|
|
|
/// 移动桌宠位置 (自带缩放倍率)
|
2022-12-13 07:10:18 +00:00
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="X">X轴</param>
|
|
|
|
|
/// <param name="Y">Y轴</param>
|
2022-12-14 18:17:13 +00:00
|
|
|
|
void MoveWindows(double X, double Y);
|
|
|
|
|
|
2022-12-13 07:10:18 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取桌宠距离左侧的位置
|
|
|
|
|
/// </summary>
|
2022-12-14 18:17:13 +00:00
|
|
|
|
double GetWindowsDistanceLeft();
|
2022-12-13 07:10:18 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取桌宠距离右侧的位置
|
|
|
|
|
/// </summary>
|
2022-12-14 18:17:13 +00:00
|
|
|
|
double GetWindowsDistanceRight();
|
2022-12-13 07:10:18 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取桌宠距离上方的位置
|
|
|
|
|
/// </summary>
|
2022-12-14 18:17:13 +00:00
|
|
|
|
double GetWindowsDistanceUp();
|
2022-12-13 07:10:18 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取桌宠距离下方的位置
|
|
|
|
|
/// </summary>
|
2022-12-14 18:17:13 +00:00
|
|
|
|
double GetWindowsDistanceDown();
|
2023-01-11 13:10:18 +00:00
|
|
|
|
///// <summary>
|
|
|
|
|
///// 窗体宽度
|
|
|
|
|
///// </summary>
|
|
|
|
|
//double WindowsWidth { get; set; }
|
|
|
|
|
///// <summary>
|
|
|
|
|
///// 窗体高度
|
|
|
|
|
///// </summary>
|
|
|
|
|
//double WindowsHight { get; set; }
|
2022-12-14 18:17:13 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// 缩放比例
|
|
|
|
|
/// </summary>
|
|
|
|
|
double ZoomRatio { get; }
|
2022-12-28 10:24:38 +00:00
|
|
|
|
/// <summary>
|
2023-01-08 16:57:10 +00:00
|
|
|
|
/// 按多久视为长按 单位毫秒
|
|
|
|
|
/// </summary>
|
|
|
|
|
int PressLength { get; }
|
2023-01-23 17:31:16 +00:00
|
|
|
|
|
2023-01-08 02:59:54 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// 显示面板窗体
|
|
|
|
|
/// </summary>
|
|
|
|
|
void ShowPanel();
|
2023-01-21 14:16:13 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// 启用计算等数据功能
|
|
|
|
|
/// </summary>
|
|
|
|
|
bool EnableFunction { get; }
|
2023-01-24 06:56:16 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// 互动周期
|
|
|
|
|
/// </summary>
|
2023-05-30 16:51:17 +00:00
|
|
|
|
int InteractionCycle { get; }
|
2022-12-13 07:10:18 +00:00
|
|
|
|
}
|
|
|
|
|
}
|