Sein Replay Writer
C++ type · FSeinReplayWriter
#include "SeinReplay.h"
Records one match to a file as it plays.
C++ members (9)
bool Begin(const UWorld& World, const FSeinReplayInfo& Info, FString& OutError);Open a new file in the replay directory and write the info.void WriteTurn(int32 Turn, TConstArrayView<FSeinCommand> Commands);The commands of a turn the world took.void WriteCheckpoint(int32 Turn, TConstArrayView<uint8> State);The world’s state at the end of Turn (CaptureState bytes).void WriteChecksum(int32 Turn, const FGuid& Checksum);The state checksum at the end of Turn.void WritePauseControl(int32 Tick, const FSeinCommand& Command);A resume the host sent for the pause at Tick, in the order it sent them.void WriteEnd(int32 Tick, const FGuid& Checksum);The tick the match ended at and the state checksum there.FString Finish();Close the file and publish it. Returns its path, or empty when nothing was recorded.bool IsRecording() const;int32 GetLastTurn() const;