VPet/VPet-Simulator.Core/Graph/IGraph.cs

56 lines
1.7 KiB
C#
Raw Normal View History

2022-12-13 07:10:18 +00:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
2023-03-26 22:35:19 +00:00
using System.Windows.Controls;
2022-12-13 07:10:18 +00:00
using static VPet_Simulator.Core.GraphCore;
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>
/// 从0开始运行该动画, 等待部署完成后执行
/// </summary>
2023-03-26 22:35:19 +00:00
void WaitForReadyRun(Border parant, Action EndAction = null);
2023-01-22 17:33:13 +00:00
///// <summary>//经过测试,储存到内存好处多多,不储存也要占用很多内存,干脆存了吧
///// 是否储存到内存以支持快速显示
///// </summary>
//bool StoreMemory { get; }
2022-12-13 07:10:18 +00:00
/// <summary>
2023-03-10 12:22:16 +00:00
/// 该动画模式
2022-12-13 07:10:18 +00:00
/// </summary>
2023-05-09 23:16:58 +00:00
GameSave.ModeType ModeType { get; }
2022-12-13 07:10:18 +00:00
/// <summary>
2023-03-10 12:22:16 +00:00
/// 该动画类型
2022-12-13 07:10:18 +00:00
/// </summary>
GraphType GraphType { get; }
/// <summary>
/// 停止动画
/// </summary>
/// <param name="StopEndAction">停止动画时是否允许执行停止帧</param>
void Stop(bool StopEndAction = false);
}
}