mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-20 10:19:26 +01:00
33 lines
713 B
C#
33 lines
713 B
C#
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Text;
|
|||
|
|
using System.Threading.Tasks;
|
|||
|
|
|
|||
|
|
namespace Flowframes.Data
|
|||
|
|
{
|
|||
|
|
public struct ResumeState
|
|||
|
|
{
|
|||
|
|
bool autoEncode;
|
|||
|
|
int lastInterpolatedInputFrame;
|
|||
|
|
|
|||
|
|
public ResumeState (bool autoEncArg, int lastInterpInFrameArg)
|
|||
|
|
{
|
|||
|
|
autoEncode = autoEncArg;
|
|||
|
|
lastInterpolatedInputFrame = lastInterpInFrameArg;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public override string ToString ()
|
|||
|
|
{
|
|||
|
|
string s = $"AUTOENC|{autoEncode}";
|
|||
|
|
|
|||
|
|
if (!autoEncode)
|
|||
|
|
{
|
|||
|
|
s += $"\nLASTINPUTFRAME|{lastInterpolatedInputFrame}";
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
return s;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|