Exemple #1
0
        /// <summary>
        /// Get this Player Friends List
        /// </summary>
        public string[] this[GamePlayer player]
        {
            get
            {
                if (player == null)
                {
                    return(new string[0]);
                }

                string[] result;
                return(PlayersFriendsListsCache.TryGetValue(player, out result) ? result : new string[0]);
            }
        }
Exemple #2
0
        /// <summary>
        /// Get this Player Friends List
        /// </summary>
        public string[] this[GamePlayer player]
        {
            get
            {
                if (player == null)
                {
                    return(Array.Empty <string>());
                }

                string[] result;
                return(PlayersFriendsListsCache.TryGetValue(player, out result) ? result : Array.Empty <string>());
            }
        }