예제 #1
0
        protected void HandleWinPanelMatch(object sender, WinPanelMatchEventArgs e)
        {
            // Add the last round (round_officially_ended isn't raised at the end)
            Application.Current.Dispatcher.Invoke(delegate
            {
                Demo.Rounds.Add(CurrentRound);
            });

            ProcessPlayersRating();
        }
        protected void HandleWinPanelMatch(object sender, WinPanelMatchEventArgs e)
        {
            if (!IsMatchStarted)
            {
                return;
            }

            if (IsOvertime)
            {
                Application.Current.Dispatcher.Invoke(() => Demo.Overtimes.Add(CurrentOvertime));
            }
        }
예제 #3
0
		protected void HandleWinPanelMatch(object sender, WinPanelMatchEventArgs e)
		{
			if (!_isRoundOffiallyEndedOccured)
			{
				// Update players stats here because some demos doesn't have round_officialy_ended at the last round
				UpdateKillsCount();
				UpdatePlayerScore();
			}

			Application.Current.Dispatcher.Invoke(delegate
			{
				if (!IsOvertime || !_isFaceit) Demo.Rounds.Add(CurrentRound);
			});

			IsMatchStarted = false;
		}
예제 #4
0
        protected void HandleWinPanelMatch(object sender, WinPanelMatchEventArgs e)
        {
            if (!IsMatchStarted)
            {
                return;
            }

            if (IsOvertime)
            {
                Application.Current.Dispatcher.Invoke(delegate
                {
                    Demo.Overtimes.Add(CurrentOvertime);
                });
            }

            ProcessPlayersRating();
        }
예제 #5
0
		protected void HandleWinPanelMatch(object sender, WinPanelMatchEventArgs e)
		{
			// Add the last round (round_officially_ended isn't raised at the end)
			Application.Current.Dispatcher.Invoke(delegate
			{
				Demo.Rounds.Add(CurrentRound);
			});

			// Add the last OT
			if (IsOvertime)
			{
				Application.Current.Dispatcher.Invoke(delegate
				{
					Demo.Overtimes.Add(CurrentOvertime);
				});
			}

			ProcessPlayersRating();
		}
예제 #6
0
		protected void HandleWinPanelMatch(object sender, WinPanelMatchEventArgs e)
		{
			Application.Current.Dispatcher.Invoke(delegate
			{
				Demo.Rounds.Add(CurrentRound);
			});

			if (IsMatchStarted && !IsOvertime)
			{
				// Stop analyze
				IsMatchStarted = false;
				return;
			}

			if (CurrentOvertime.ScoreTeam1 != 0 || CurrentOvertime.ScoreTeam2 != 0)
			{
				// Add the last overtime
				Application.Current.Dispatcher.Invoke(delegate
				{
					Demo.Overtimes.Add(CurrentOvertime);
				});
			}
		}
예제 #7
0
 protected void HandleWinPanelMatch(object sender, WinPanelMatchEventArgs e)
 {
     IsMatchStarted = false;
 }
예제 #8
0
		protected void HandleWinPanelMatch(object sender, WinPanelMatchEventArgs e)
		{
			if (!IsMatchStarted) return;

			if (IsOvertime)
			{
				Application.Current.Dispatcher.Invoke(delegate
				{
					Demo.Overtimes.Add(CurrentOvertime);
				});
			}

			ProcessPlayersRating();
		}
예제 #9
0
		protected void HandleWinPanelMatch(object sender, WinPanelMatchEventArgs e)
		{
			if (!_isRoundOffiallyEndedOccured)
			{
				// Update players stats here because some demos doesn't have round_officialy_ended at the last round
				UpdateKillsCount();
				UpdatePlayerScore();
			}

			Application.Current.Dispatcher.Invoke(delegate
			{
				if (!IsOvertime || !_isFaceit) Demo.Rounds.Add(CurrentRound);
				if(IsOvertime) Demo.Overtimes.Add(CurrentOvertime);
			});
		}
예제 #10
0
        private void HandleWinPanelMatch(object sender, WinPanelMatchEventArgs e)
        {
            BaseEvent newEvent = new BaseEvent(EventType.WinPanelMatch);

            CurrentTick.Events.Add(newEvent);
        }