class InputPrediction : System.Object

The input prediction.

public void Acknowledge(int count)

Mark the specified input as acknowledged, removing all actions in the prediction queue prior to this point in time.

  • count (int) – The counter originally given by Predict.
public int Predict(System.Action action)

Place an action in the input prediction queue, and return the counter that the server needs to acknowledge.

  • action (System.Action) – The prediction action.

The counter that should be sent to the server for acknowledgement.

public void Replay()

Replays the list of actions that are currently not acknowledged by the server.