public void Parse(Line line) { var match = _goldProgressRegex.Match(line.Text); if (match.Success) { var wins = int.Parse(match.Groups["wins"].Value); GoldProgressWins?.Invoke(new GoldProgessWinsEventArgs(wins)); } match = _deckDeletedRegex.Match(line.Text); if (match.Success) { var deckId = long.Parse(match.Groups["deckId"].Value); DeckDeleted?.Invoke(new DeckDeletedEventArgs(deckId)); } }
internal virtual void OnGoldProgressWins(GoldProgessWinsEventArgs args) => GoldProgressWins?.Invoke(args);