Interface IStateStore
- Namespace
- Backdash.Synchronizing.State
- Assembly
- Backdash.dll
Repository for temporary save and restore game states.
public interface IStateStore
Methods
Advance()
Advance the store pointer
void Advance()
GetChecksum(in Frame)
Finds checksum for
uint GetChecksum(in Frame frame)
Parameters
frame
Frame
Returns
Initialize(int)
Initialize the state buffer with capacity of saveCount
void Initialize(int saveCount)
Parameters
saveCount
int
Last()
Returns last SavedFrame.
SavedFrame Last()
Returns
Next()
Returns next writable SavedFrame.
ref SavedFrame Next()
Returns
TryLoad(in Frame, out SavedFrame)
Try loads a SavedFrame for frame
.
bool TryLoad(in Frame frame, out SavedFrame savedFrame)
Parameters
frame
FramesavedFrame
SavedFrame
Returns
- bool
true if the frame was found, false otherwise