private void CacheMyself(BnetGameAccount gameAccount, BnetPlayer player) { if ((player != this.m_myPlayer) && (gameAccount.GetId() == this.m_myGameAccountId)) { this.m_myPlayer = player; } }
public void AddGameAccount(BnetGameAccount gameAccount) { BnetGameAccountId key = gameAccount.GetId(); if (!this.m_gameAccounts.ContainsKey(key)) { this.m_gameAccounts.Add(key, gameAccount); this.CacheSpecialGameAccounts(); } }