增加注释
This commit is contained in:
@@ -24,7 +24,7 @@ namespace Spine.Exporters
|
|||||||
int frameCount = GetFrameCount();
|
int frameCount = GetFrameCount();
|
||||||
int frameIdx = 0;
|
int frameIdx = 0;
|
||||||
|
|
||||||
_progressReporter?.Invoke(frameCount, 0, $"[{frameIdx}/{frameCount}] {output}");
|
_progressReporter?.Invoke(frameCount, 0, $"[{frameIdx}/{frameCount}] {output}"); // 导出帧序列单独在此处调用进度报告
|
||||||
foreach (var frame in GetFrames(spines))
|
foreach (var frame in GetFrames(spines))
|
||||||
{
|
{
|
||||||
if (ct.IsCancellationRequested)
|
if (ct.IsCancellationRequested)
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ namespace Spine.Exporters
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 生成帧序列
|
/// 生成帧序列, 用于导出帧序列
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected IEnumerable<SFMLImageVideoFrame> GetFrames(SpineObject[] spines)
|
protected IEnumerable<SFMLImageVideoFrame> GetFrames(SpineObject[] spines)
|
||||||
{
|
{
|
||||||
@@ -121,7 +121,7 @@ namespace Spine.Exporters
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 生成帧序列, 支持中途取消和进度输出
|
/// 生成帧序列, 支持中途取消和进度输出, 用于动图视频等单个文件输出
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected IEnumerable<SFMLImageVideoFrame> GetFrames(SpineObject[] spines, string output, CancellationToken ct)
|
protected IEnumerable<SFMLImageVideoFrame> GetFrames(SpineObject[] spines, string output, CancellationToken ct)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user