Class SessionReplayControl
- Namespace
- Backdash.Synchronizing
- Assembly
- Backdash.dll
Control flow of a replay session. CreateReplaySession<TInput, TGameState>(int, IReadOnlyList<ConfirmedInputs<TInput>>, SessionServices<TInput, TGameState>?, SessionReplayControl?, bool)
public sealed class SessionReplayControl
- Inheritance
-
SessionReplayControl
- Inherited Members
Constructors
SessionReplayControl()
public SessionReplayControl()
Properties
IsBackward
true if replay will flow backwards
public bool IsBackward { get; set; }
Property Value
IsPaused
true if replay is paused
public bool IsPaused { get; }
Property Value
MaxBackwardFrames
Maximum number of frames for backward play Defaults to 300 (5 seconds in 60 fps)
public int MaxBackwardFrames { get; init; }
Property Value
Methods
Pause()
Pause replay. IsPaused
public void Pause()
Play(bool)
Unpause replay. IsPaused
public void Play(bool backwards = false)
Parameters
backwards
bool
ToggleBackwards()
Toggle replay backward. IsBackward
public void ToggleBackwards()
TogglePause()
Toggle replay pause. IsPaused
public void TogglePause()