Exemplo n.º 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));
            }
        }
Exemplo n.º 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;
		}
Exemplo n.º 4
0
        protected void HandleWinPanelMatch(object sender, WinPanelMatchEventArgs e)
        {
            if (!IsMatchStarted)
            {
                return;
            }

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

            ProcessPlayersRating();
        }
Exemplo n.º 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();
		}
Exemplo n.º 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);
				});
			}
		}
Exemplo n.º 7
0
 protected void HandleWinPanelMatch(object sender, WinPanelMatchEventArgs e)
 {
     IsMatchStarted = false;
 }
Exemplo n.º 8
0
		protected void HandleWinPanelMatch(object sender, WinPanelMatchEventArgs e)
		{
			if (!IsMatchStarted) return;

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

			ProcessPlayersRating();
		}
Exemplo n.º 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);
			});
		}
Exemplo n.º 10
0
        private void HandleWinPanelMatch(object sender, WinPanelMatchEventArgs e)
        {
            BaseEvent newEvent = new BaseEvent(EventType.WinPanelMatch);

            CurrentTick.Events.Add(newEvent);
        }