Table of Contents

Class DefaultStateStore

Namespace
Backdash.Synchronizing.State
Assembly
Backdash.dll

Binary store for temporary save and restore game states using IBinarySerializer<T>.

public sealed class DefaultStateStore : IStateStore
Inheritance
DefaultStateStore
Implements
Inherited Members

Constructors

DefaultStateStore(int)

Binary store for temporary save and restore game states using IBinarySerializer<T>.

public DefaultStateStore(int hintSize)

Parameters

hintSize int

initial memory used for infer the state size

Methods

Advance()

Advance the store pointer

public void Advance()

GetChecksum(in Frame)

public uint GetChecksum(in Frame frame)

Parameters

frame Frame

Returns

uint

GetCurrent()

Returns current SavedFrame.

public ref SavedFrame GetCurrent()

Returns

SavedFrame

Initialize(int)

Initialize the state buffer with capacity of saveCount

public void Initialize(int saveCount)

Parameters

saveCount int

Last()

Returns last SavedFrame.

public SavedFrame Last()

Returns

SavedFrame

Load(Frame)

Returns a SavedFrame for frame.

public SavedFrame Load(Frame frame)

Parameters

frame Frame

Frame to load.

Returns

SavedFrame