using LinePutScript; using System; using System.IO; using System.Linq; using System.Threading; using System.Windows.Controls; using System.Windows.Media; using static VPet_Simulator.Core.GraphCore; using static VPet_Simulator.Core.IGraph; using static VPet_Simulator.Core.Picture; namespace VPet_Simulator.Core { /// /// 动画显示接口 /// public interface IGraph { /// /// 从0开始运行该动画 /// void Run(Border parant, Action EndAction = null); /// /// 当前动画播放状态 /// bool PlayState { get; set; } /// /// 是否循环播放 /// bool IsLoop { get; set; } /// /// 是否继续播放 /// bool IsContinue { get; set; } /// /// 是否准备完成 /// bool IsReady { get; } /// /// 该动画信息 /// GraphInfo GraphInfo { get; } /// /// 停止动画 /// /// 停止动画时是否允许执行停止帧 void Stop(bool StopEndAction = false); /// /// 指示该ImageRun支持 /// public interface IRunImage : IGraph { /// /// 从0开始运行该动画 /// /// 显示位置 /// 结束方法 /// 额外图片 void Run(Border parant, ImageSource image, Action EndAction = null); } } }