Esempio n. 1
0
		internal void RaiseServerRankUpdate(ServerRankUpdateEventArgs sru)
		{
			if (ServerRankUpdate != null)
				ServerRankUpdate(this, sru);
		}
Esempio n. 2
0
		private void HandleServerRankUpdate(object sender, ServerRankUpdateEventArgs e)
		{
			foreach (ServerRankUpdateEventArgs.RankStruct rankStruct in e.RankStructList)
			{
				PlayerExtended player = Demo.Players.FirstOrDefault(p => p.SteamId == rankStruct.SteamId);
				if (player != null)
				{
					player.RankNumberOld = rankStruct.Old;
					player.RankNumberNew = rankStruct.New;
					player.WinCount = rankStruct.NumWins;
				}
			}
		}