SimulationStateStore<TState>
class in Coherence.Toolkit
Type Parameters
TState
Constructors
SimulationStateStore() |
Properties
Count | |
NewestFrame | |
OldestFrame |
Methods
Acknowledge(long) | Removes all states up to a given frame. |
Add(in TState, long) | Stores the latest known state. The frame of the state must be subsequent to the previous state frame. |
Clear() | Removes all stored states and resets NewestFrame and OldestFrame. |
GetEnumerator() | |
TryRollback(long, out TState) | Attempts to roll back the state store returning the latest valid state. |