mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
56 lines
1.7 KiB
C#
56 lines
1.7 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows;
|
|
using System.Windows.Controls;
|
|
using static VPet_Simulator.Core.GraphCore;
|
|
|
|
namespace VPet_Simulator.Core
|
|
{
|
|
/// <summary>
|
|
/// 动画显示接口
|
|
/// </summary>
|
|
public interface IGraph
|
|
{
|
|
/// <summary>
|
|
/// 从0开始运行该动画
|
|
/// </summary>
|
|
void Run(Border parant, Action EndAction = null);
|
|
/// <summary>
|
|
/// 当前动画播放状态
|
|
/// </summary>
|
|
bool PlayState { get; set; }
|
|
/// <summary>
|
|
/// 是否循环播放
|
|
/// </summary>
|
|
bool IsLoop { get; set; }
|
|
/// <summary>
|
|
/// 是否继续播放
|
|
/// </summary>
|
|
bool IsContinue { get; set; }
|
|
/// <summary>
|
|
/// 从0开始运行该动画, 等待部署完成后执行
|
|
/// </summary>
|
|
void WaitForReadyRun(Border parant, Action EndAction = null);
|
|
///// <summary>//经过测试,储存到内存好处多多,不储存也要占用很多内存,干脆存了吧
|
|
///// 是否储存到内存以支持快速显示
|
|
///// </summary>
|
|
//bool StoreMemory { get; }
|
|
/// <summary>
|
|
/// 该动画模式
|
|
/// </summary>
|
|
GameSave.ModeType ModeType { get; }
|
|
/// <summary>
|
|
/// 该动画类型
|
|
/// </summary>
|
|
GraphType GraphType { get; }
|
|
/// <summary>
|
|
/// 停止动画
|
|
/// </summary>
|
|
/// <param name="StopEndAction">停止动画时是否允许执行停止帧</param>
|
|
void Stop(bool StopEndAction = false);
|
|
}
|
|
}
|