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

            return(duration);
        }
Esempio 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;
 }
Esempio n. 3
0
 public PredictionChecker(PlayerEntityComparer playerEntityComparer,
                          PredictedSnapshotsStorage predictedSnapshotsStorage)
 {
     this.playerEntityComparer      = playerEntityComparer;
     this.predictedSnapshotsStorage = predictedSnapshotsStorage;
 }