public override void Add(BattlegroundsGameStats other) { base.Add(other); if (other is BattlegroundsGameHistory) { var gh = (BattlegroundsGameHistory)other; Placement += gh.Placement; Points += gh.Points; Team = gh.Team; } }
public virtual void Add(BattlegroundsGameStats other) { this.Kills += other.Kills; this.Deaths += other.Deaths; this.Assists += other.Assists; this.TotalDamageDealt += other.TotalDamageDealt; this.TotalDamageTaken += other.TotalDamageTaken; this.TotalCritDamageDealt += other.TotalCritDamageDealt; this.HealingDone += other.HealingDone; this.DistanceTravelled += other.DistanceTravelled; this.MissedHits += other.MissedHits; this.ConnectedHits += other.ConnectedHits; this.TotalPickedUpPowerups += other.TotalPickedUpPowerups; this.TotalPickedUpWeapons += other.TotalPickedUpWeapons; this.TimeSpentInAir += other.TimeSpentInAir; this.TimeSpentStunned += other.TimeSpentStunned; if (other.LargestKillstreak > this.LargestKillstreak) { this.LargestKillstreak = other.LargestKillstreak; } }