mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
77 lines
2.0 KiB
C#
77 lines
2.0 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>
|
|
void ResetPosition();
|
|
/// <summary>
|
|
/// 判断桌宠是否靠边
|
|
/// </summary>
|
|
bool CheckPosition();
|
|
|
|
/// <summary>
|
|
/// 启用计算等数据功能
|
|
/// </summary>
|
|
bool EnableFunction { get; }
|
|
/// <summary>
|
|
/// 互动周期
|
|
/// </summary>
|
|
int InteractionCycle { get; }
|
|
|
|
/// <summary>
|
|
/// 是否启用边缘重新定位
|
|
/// </summary>
|
|
bool RePostionActive { get; set; }
|
|
}
|
|
}
|