示例#1
0
        private static PlayerResponseHitGameViewItem GetPlayerHitGameViewItem(Player player)
        {
            var playerHitGameViewItem = new PlayerResponseHitGameViewItem
            {
                Id   = player.Id,
                Name = player.Name
            };

            return(playerHitGameViewItem);
        }
示例#2
0
        private static IEnumerable <PlayerResponseHitGameViewItem> GetPlayerHitGameViewItems(IEnumerable <Player> bots)
        {
            var playerHitGameViewItems = new List <PlayerResponseHitGameViewItem>();

            foreach (var bot in bots)
            {
                var playerHitGameViewItem = new PlayerResponseHitGameViewItem
                {
                    Id   = bot.Id,
                    Name = bot.Name
                };
                playerHitGameViewItems.Add(playerHitGameViewItem);
            }
            return(playerHitGameViewItems);
        }