VPet/VPet-Simulator.Windows.Interface/IMainWindow.cs

146 lines
3.9 KiB
C#
Raw Normal View History

2023-07-01 07:46:08 +00:00
using LinePutScript;
using LinePutScript.Dictionary;
using System.Collections.Generic;
2023-06-08 08:46:53 +00:00
using System.Windows.Media;
2023-04-01 19:31:28 +00:00
using VPet_Simulator.Core;
2023-04-01 15:15:50 +00:00
namespace VPet_Simulator.Windows.Interface
{
2023-05-25 18:44:31 +00:00
/// <summary>
/// 游戏主窗体
/// </summary>
2023-04-01 15:15:50 +00:00
public interface IMainWindow
{
2023-04-01 19:31:28 +00:00
/// <summary>
/// 是否为Steam用户
/// </summary>
bool IsSteamUser { get; }
/// <summary>
/// 游戏设置
/// </summary>
2023-05-25 18:44:31 +00:00
Setting Set { get; }
2023-04-01 19:31:28 +00:00
/// <summary>
/// 宠物加载器列表
/// </summary>
2023-05-25 18:44:31 +00:00
List<PetLoader> Pets { get; }
2023-04-01 19:31:28 +00:00
/// <summary>
2023-09-03 18:55:41 +00:00
/// 所有可用聊天API
/// </summary>
2023-09-04 08:45:32 +00:00
List<ITalkAPI> TalkAPI { get; }
2023-09-03 18:55:41 +00:00
/// <summary>
/// 当前正在使用的TalkBox
/// </summary>
2023-09-04 08:45:32 +00:00
ITalkAPI TalkBoxCurr { get; }
2023-09-03 18:55:41 +00:00
/// <summary>
2023-04-01 19:31:28 +00:00
/// 桌宠数据核心
/// </summary>
2023-05-25 18:44:31 +00:00
GameCore Core { get; }
2023-04-01 19:31:28 +00:00
/// <summary>
/// 桌宠主要部件
/// </summary>
2023-05-25 18:44:31 +00:00
Main Main { get; }
2023-04-01 19:31:28 +00:00
/// <summary>
/// 版本号
/// </summary>
int version { get; }
2023-04-01 19:31:28 +00:00
/// <summary>
/// 版本号
/// </summary>
string Version { get; }
2023-04-01 19:31:28 +00:00
/// <summary>
/// 上次点击时间 (Tick)
/// </summary>
long lastclicktime { get; set; }
/// <summary>
/// 所有三方插件
/// </summary>
List<MainPlugin> Plugins { get; }
2023-06-01 14:50:40 +00:00
/// <summary>
/// 所有食物
/// </summary>
2023-06-08 08:46:53 +00:00
List<Food> Foods { get; }
/// <summary>
2023-06-18 22:20:06 +00:00
/// 需要食物时会说的话
/// </summary>
List<LowText> LowFoodText { get; }
/// <summary>
/// 需要饮料时会说的话
/// </summary>
List<LowText> LowDrinkText { get; }
2023-07-16 23:58:09 +00:00
/// <summary>
2023-08-13 14:39:46 +00:00
/// 点击时会说的话
/// </summary>
List<ClickText> ClickTexts { get; }
/// <summary>
2023-08-22 09:52:25 +00:00
/// 选择说的话
/// </summary>
List<SelectText> SelectTexts { get; }
/// <summary>
2023-08-13 14:39:46 +00:00
/// 获得自动点击的文本
/// </summary>
/// <returns>说话内容</returns>
ClickText GetClickText();
/// <summary>
2023-06-08 08:46:53 +00:00
/// 图片资源
/// </summary>
ImageResources ImageSources { get; }
2023-04-01 19:31:28 +00:00
/// <summary>
/// 设置游戏缩放倍率
/// </summary>
/// <param name="zl">缩放倍率 范围0.1-10</param>
void SetZoomLevel(double zl);
/// <summary>
/// 保存设置
/// </summary>
void Save();
/// <summary>
/// 加载DIY内容
/// </summary>
void LoadDIY();
/// <summary>
2023-07-16 23:58:09 +00:00
/// 显示设置页面
/// </summary>
/// <param name="page">设置页</param>
void ShowSetting(int page = -1);
/// <summary>
/// 显示更好买页面
/// </summary>
/// <param name="type">食物类型</param>
void ShowBetterBuy(Food.FoodType type);
/// <summary>
/// 关闭桌宠
2023-04-01 19:31:28 +00:00
/// </summary>
2023-07-16 23:58:09 +00:00
void Close();
/// <summary>
/// 重启桌宠
/// </summary>
void Restart();
/// <summary>
/// 鼠标穿透
/// </summary>
bool MouseHitThrough { get; set; }
2023-08-06 02:00:03 +00:00
/// <summary>
/// 存档 Hash检查 是否通过
/// </summary>
2023-08-10 11:34:11 +00:00
bool HashCheck { get; }
/// <summary>
/// 获得当前系统音乐播放音量
/// </summary>
float AudioPlayingVolume();
2023-08-12 07:13:30 +00:00
/// <summary>
/// 关闭指示器,默认为true
/// </summary>
bool CloseConfirm { get; }
2023-08-25 22:31:44 +00:00
/// <summary>
/// 关闭该玩家的HashCheck检查
/// 如果你的mod属于作弊mod/有作弊内容,请在作弊前调用这个方法
/// </summary>
void HashCheckOff();
2023-09-20 12:58:28 +00:00
GameSave_v2 GameSave_v2 { get; }
2023-04-01 15:15:50 +00:00
}
2023-07-16 23:58:09 +00:00
2023-04-01 15:15:50 +00:00
}