Table of Contents

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

uint

Initialize(int)

Initialize the state buffer with capacity of saveCount

void Initialize(int saveCount)

Parameters

saveCount int

Last()

Returns last SavedFrame.

SavedFrame Last()

Returns

SavedFrame

Next()

Returns next writable SavedFrame.

ref SavedFrame Next()

Returns

SavedFrame

TryLoad(in Frame, out SavedFrame)

Try loads a SavedFrame for frame.

bool TryLoad(in Frame frame, out SavedFrame savedFrame)

Parameters

frame Frame
savedFrame SavedFrame

Returns

bool

true if the frame was found, false otherwise