2023-07-16 23:58:09 +00:00
|
|
|
|
using LinePutScript;
|
|
|
|
|
using System;
|
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Threading;
|
2023-03-26 22:35:19 +00:00
|
|
|
|
using System.Windows.Controls;
|
2023-06-01 08:16:45 +00:00
|
|
|
|
using System.Windows.Media;
|
2022-12-13 07:10:18 +00:00
|
|
|
|
using static VPet_Simulator.Core.GraphCore;
|
|
|
|
|
|
2023-07-16 23:58:09 +00:00
|
|
|
|
using static VPet_Simulator.Core.IGraph;
|
|
|
|
|
using static VPet_Simulator.Core.Picture;
|
|
|
|
|
|
2022-12-13 07:10:18 +00:00
|
|
|
|
namespace VPet_Simulator.Core
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 动画显示接口
|
|
|
|
|
/// </summary>
|
|
|
|
|
public interface IGraph
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 从0开始运行该动画
|
|
|
|
|
/// </summary>
|
2023-03-26 22:35:19 +00:00
|
|
|
|
void Run(Border parant, Action EndAction = null);
|
2022-12-13 07:10:18 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// 当前动画播放状态
|
|
|
|
|
/// </summary>
|
|
|
|
|
bool PlayState { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 是否循环播放
|
|
|
|
|
/// </summary>
|
|
|
|
|
bool IsLoop { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 是否继续播放
|
|
|
|
|
/// </summary>
|
|
|
|
|
bool IsContinue { get; set; }
|
2023-02-22 05:37:23 +00:00
|
|
|
|
/// <summary>
|
2023-05-31 17:47:23 +00:00
|
|
|
|
/// 是否准备完成
|
2023-02-22 05:37:23 +00:00
|
|
|
|
/// </summary>
|
2023-06-01 08:16:45 +00:00
|
|
|
|
bool IsReady { get; }
|
2022-12-13 07:10:18 +00:00
|
|
|
|
/// <summary>
|
2023-07-16 23:58:09 +00:00
|
|
|
|
/// 该动画信息
|
2022-12-13 07:10:18 +00:00
|
|
|
|
/// </summary>
|
2023-07-16 23:58:09 +00:00
|
|
|
|
GraphInfo GraphInfo { get; }
|
2022-12-13 07:10:18 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// 停止动画
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="StopEndAction">停止动画时是否允许执行停止帧</param>
|
|
|
|
|
void Stop(bool StopEndAction = false);
|
2023-06-01 08:16:45 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// 指示该ImageRun支持
|
|
|
|
|
/// </summary>
|
|
|
|
|
public interface IRunImage : IGraph
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 从0开始运行该动画
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="parant">显示位置</param>
|
|
|
|
|
/// <param name="EndAction">结束方法</param>
|
|
|
|
|
/// <param name="image">额外图片</param>
|
|
|
|
|
void Run(Border parant, ImageSource image, Action EndAction = null);
|
|
|
|
|
}
|
2022-12-13 07:10:18 +00:00
|
|
|
|
}
|
|
|
|
|
}
|