Table of Contents

Class SessionServices<TInput, TGameState>

Namespace
Backdash
Assembly
Backdash.dll

Session dependencies.

public sealed class SessionServices<TInput, TGameState> where TInput : unmanaged where TGameState : notnull, new()

Type Parameters

TInput

Input type

TGameState

Game state type

Inheritance
SessionServices<TInput, TGameState>
Inherited Members

Constructors

SessionServices()

public SessionServices()

Properties

ChecksumProvider

Checksum provider service for session state.

public IChecksumProvider<TGameState>? ChecksumProvider { get; set; }

Property Value

IChecksumProvider<TGameState>

DeterministicRandom

Service for random value generation in session Defaults to XorSimdRandomXorShiftRandom

public IDeterministicRandom? DeterministicRandom { get; set; }

Property Value

IDeterministicRandom

InputGenerator

Input generator service for session.

public IInputGenerator<TInput>? InputGenerator { get; set; }

Property Value

IInputGenerator<TInput>

InputListener

Service to listen for confirmed inputs

public IInputListener<TInput>? InputListener { get; set; }

Property Value

IInputListener<TInput>

InputSerializer

Serializer for session input.

public IBinarySerializer<TInput>? InputSerializer { get; set; }

Property Value

IBinarySerializer<TInput>

LogWriter

Log writer service for session.

public ILogWriter? LogWriter { get; set; }

Property Value

ILogWriter

PeerSocketFactory

State store service for session.

public IPeerSocketFactory? PeerSocketFactory { get; set; }

Property Value

IPeerSocketFactory

Random

Default random service

public Random? Random { get; set; }

Property Value

Random

StateSerializer

Binary state serializer for session. When set the default IStateStore<TState> will be BinaryStateStore<TState>

public IBinarySerializer<TGameState>? StateSerializer { get; set; }

Property Value

IBinarySerializer<TGameState>

StateStore

State store service for session.

public IStateStore<TGameState>? StateStore { get; set; }

Property Value

IStateStore<TGameState>