public void AddMatchOutcome(Outcome _outcome, int _gameScore, int _pointsScore, bool _isAddition) { int add = (_isAddition) ? 1 : -1; MatchRecord.AddOutcome(_outcome, _isAddition); GameScore += (_gameScore * add); PointsScore += (_pointsScore * add); }
/// <summary> /// Adds or subtracts a Match Outcome. /// </summary> /// <param name="_outcome">Win, Loss, or Tie</param> /// <param name="_isAddition">Add or subtract</param> public void AddMatchOutcome(Outcome _outcome, bool _isAddition) { MatchRecord.AddOutcome(_outcome, _isAddition); }