public void CombineStats(PersistedStatFloatEntry entry)
 {
     Sum           += entry.Sum;
     NumGamesInSum += entry.NumGamesInSum;
     Max            = Math.Max(Max, entry.Max);
     Min            = Math.Min(Min, entry.Min);
 }
Exemple #2
0
 public PersistedStats()
 {
     TotalDeaths                                  = new PersistedStatEntry();
     TotalPlayerKills                             = new PersistedStatEntry();
     TotalPlayerAssists                           = new PersistedStatEntry();
     TotalPlayerDamage                            = new PersistedStatEntry();
     TotalPlayerHealing                           = new PersistedStatEntry();
     TotalPlayerAbsorb                            = new PersistedStatEntry();
     TotalPlayerDamageReceived                    = new PersistedStatEntry();
     TotalBadgePoints                             = new PersistedStatFloatEntry();
     NetDamageAvoidedByEvades                     = new PersistedStatEntry();
     NetDamageAvoidedByEvadesPerLife              = new PersistedStatFloatEntry();
     DamageDodgedByEvades                         = new PersistedStatEntry();
     DamageInterceptedByEvades                    = new PersistedStatEntry();
     MyIncomingDamageReducedByCover               = new PersistedStatEntry();
     MyIncomingDamageReducedByCoverPerLife        = new PersistedStatFloatEntry();
     MyOutgoingDamageReducedByCover               = new PersistedStatEntry();
     MyOutgoingExtraDamageFromEmpowered           = new PersistedStatEntry();
     MyOutgoingDamageReducedFromWeakened          = new PersistedStatEntry();
     TeamOutgoingDamageIncreasedByEmpoweredFromMe = new PersistedStatEntry();
     TeamIncomingDamageReducedByWeakenedFromMe    = new PersistedStatEntry();
     MovementDeniedByMePerTurn                    = new PersistedStatFloatEntry();
     EnergyGainPerTurn                            = new PersistedStatFloatEntry();
     DamagePerTurn                                = new PersistedStatFloatEntry();
     BoostedOutgoingDamagePerTurn                 = new PersistedStatFloatEntry();
     DamageEfficiency                             = new PersistedStatFloatEntry();
     KillParticipation                            = new PersistedStatFloatEntry();
     EffectiveHealing                             = new PersistedStatEntry();
     TeamDamageAdjustedByMe                       = new PersistedStatEntry();
     TeamDamageSwingByMePerTurn                   = new PersistedStatFloatEntry();
     TeamExtraEnergyByEnergizedFromMe             = new PersistedStatEntry();
     TeamBoostedEnergyByMePerTurn                 = new PersistedStatFloatEntry();
     TeamDamageReceived                           = new PersistedStatEntry();
     DamageTakenPerLife                           = new PersistedStatFloatEntry();
     EnemiesSightedPerTurn                        = new PersistedStatFloatEntry();
     TotalTurns              = new PersistedStatFloatEntry();
     TankingPerLife          = new PersistedStatFloatEntry();
     TeamMitigation          = new PersistedStatFloatEntry();
     SupportPerTurn          = new PersistedStatFloatEntry();
     DamageDonePerLife       = new PersistedStatFloatEntry();
     DamageTakenPerTurn      = new PersistedStatFloatEntry();
     AvgLifeSpan             = new PersistedStatFloatEntry();
     SecondsPlayed           = new PersistedStatFloatEntry();
     MatchesWon              = new PersistedStatEntry();
     FreelancerSpecificStats = new List <PersistedStatEntry>();
 }