Implemented state saving for resuming (WIP)

This commit is contained in:
N00MKRAD
2021-01-30 01:37:36 +01:00
parent 36736c5691
commit b9ccbc3f36
9 changed files with 129 additions and 8 deletions

32
Code/Data/ResumeState.cs Normal file
View File

@@ -0,0 +1,32 @@
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;
}
}
}