Exemplo n.º 1
0
        public float GetTotalDuration(List <uint> predictedSnapshotIds,
                                      PredictedSnapshotsStorage predictedSnapshotsStorage)
        {
            float duration = predictedSnapshotIds
                             .Sum(id => predictedSnapshotsStorage.GetByInputId(id).physicsSimulationDuration);

            return(duration);
        }
Exemplo n.º 2
0
 public SimulationCorrector(PlayerPredictor playerPredictor, AverageInputManager averageInputManager,
                            ClientInputMessagesHistory clientInputMessagesHistory, PredictedSnapshotsStorage predictedSnapshotsStorage)
 {
     this.playerPredictor            = playerPredictor;
     this.averageInputManager        = averageInputManager;
     this.clientInputMessagesHistory = clientInputMessagesHistory;
     this.predictedSnapshotsStorage  = predictedSnapshotsStorage;
 }
Exemplo n.º 3
0
 public PredictionChecker(PlayerEntityComparer playerEntityComparer,
                          PredictedSnapshotsStorage predictedSnapshotsStorage)
 {
     this.playerEntityComparer      = playerEntityComparer;
     this.predictedSnapshotsStorage = predictedSnapshotsStorage;
 }