示例#1
0
 public static IEnumerable <IRoundPlayerState> CreateRoundPlayers(this IPlayerFactory playerFactory, IEnumerable <IGamePlayerState> gameStatePlayers)
 {
     foreach (var gameStatePlayer in gameStatePlayers)
     {
         yield return(playerFactory.CreateRoundPlayer(gameStatePlayer));
     }
 }