Table of Contents

Class CoherenceInputManager

Namespace
Coherence.Toolkit
Assembly
Coherence.Toolkit.dll
public class CoherenceInputManager
Inheritance
CoherenceInputManager

Constructors

CoherenceInputManager(ICoherenceBridge)

public CoherenceInputManager(ICoherenceBridge bridge)

Parameters

bridge ICoherenceBridge

Properties

AcknowledgedFrame

Last common acknowledged frame for all inputs in the system.

public long AcknowledgedFrame { get; }

Property Value

long

CommonReceivedFrame

Last common received frame for all inputs in the system.

public long CommonReceivedFrame { get; }

Property Value

long

CurrentFixedSimulationFrame

public long CurrentFixedSimulationFrame { get; }

Property Value

long

MispredictionFrame

Last common misprediction frame for all inputs in the system.

public long? MispredictionFrame { get; }

Property Value

long?

ProcessingEnabled

If false, the manager won't process anything during a fixed frame update.

public bool ProcessingEnabled { get; set; }

Property Value

bool

ShouldPause

If true, the system cannot do any more predictions. Client should pause the game and stop polling inputs to not lose any data required for a rollback.

public bool ShouldPause { get; }

Property Value

bool

Events

OnPauseChange

Raised when the ShouldPause flag changes indicating that the simulation should pause.

public event PauseHandler OnPauseChange

Event Type

PauseHandler