コード例 #1
0
        private async Task OnMatchTimerTick(object sender, MatchTimerTickEventArgs e)
        {
            var message = e.Message;

            SetLatestTimerTickMessage(e.Message);

            var status = message.MatchTimerStatus;

            var state = status.State;

            if (state == MatchTimerState.Stopped && _isRunning)
            {
                await EndRound();

                return;
            }
        }
 protected virtual void OnRaiseMatchTimerTickEvent(MatchTimerTickEventArgs e)
 {
     RaiseMatchTimerTickEvent?.Invoke(this, e);
 }