Exemplo n.º 1
0
        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));
            }
        }
Exemplo n.º 2
0
 internal virtual void OnGoldProgressWins(GoldProgessWinsEventArgs args) => GoldProgressWins?.Invoke(args);