mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-20 18:29:25 +01:00
Implemented state saving for resuming (WIP)
This commit is contained in:
32
Code/Data/ResumeState.cs
Normal file
32
Code/Data/ResumeState.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user