Example #1
0
        public IPlayer GetPlayerById(ulong id)
        {
            IPlayer player = BluePlayers.FirstOrDefault(p => p.Id == id);

            if (player == null)
            {
                player = RedPlayers.FirstOrDefault(p => p.Id == id);
            }

            return(player);
        }
Example #2
0
        public IPlayer GetPlayerByGuid(string guid)
        {
            IPlayer player = BluePlayers.FirstOrDefault(p => p.Guid.ToString() == guid);

            if (player == null)
            {
                player = RedPlayers.FirstOrDefault(p => p.Guid.ToString() == guid);
            }

            return(player);
        }