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
intinitial 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
GetCurrent()
Returns current SavedFrame.
public ref SavedFrame GetCurrent()
Returns
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
Load(Frame)
Returns a SavedFrame for frame
.
public SavedFrame Load(Frame frame)
Parameters
frame
FrameFrame to load.