Struct SavedFrame<TState>
- Namespace
- Backdash.Synchronizing.State
- Assembly
- Backdash.dll
Represents a save-state at specific frame.
public struct SavedFrame<TState> : IEquatable<SavedFrame<TState>> where TState : notnull
Type Parameters
TState
Game state type
- Implements
-
IEquatable<SavedFrame<TState>>
- Inherited Members
Constructors
SavedFrame(Frame, TState, int)
Represents a save-state at specific frame.
public SavedFrame(Frame Frame, TState GameState, int Checksum)
Parameters
Fields
Checksum
Saved checksum
public int Checksum
Field Value
Frame
Saved frame number
public Frame Frame
Field Value
GameState
Saved game state
public TState GameState
Field Value
- TState
Methods
Deconstruct(out Frame, out TState, out int)
public readonly void Deconstruct(out Frame Frame, out TState GameState, out int Checksum)
Parameters
Equals(SavedFrame<TState>)
public readonly bool Equals(SavedFrame<TState> other)
Parameters
other
SavedFrame<TState>
Returns
Equals(object)
public override readonly bool Equals(object obj)
Parameters
obj
object
Returns
GetHashCode()
public override readonly int GetHashCode()
Returns
ToString()
public override readonly string ToString()
Returns
Operators
operator ==(SavedFrame<TState>, SavedFrame<TState>)
public static bool operator ==(SavedFrame<TState> left, SavedFrame<TState> right)
Parameters
left
SavedFrame<TState>right
SavedFrame<TState>
Returns
operator !=(SavedFrame<TState>, SavedFrame<TState>)
public static bool operator !=(SavedFrame<TState> left, SavedFrame<TState> right)
Parameters
left
SavedFrame<TState>right
SavedFrame<TState>