private List <Character> BuildCharacters(DeckList deckList, Func <string, CardDefinition> fnFindCard) { var characters = new List <Character>(); foreach (var character in deckList.characters) { var characterCard = fnFindCard(character.Key); for (int i = 1; i <= character.Value.quantity; i++) { characters.Add(_characterBuilder.Build(characterCard, character.Value.dice)); } } return(characters); }
public FightingGameCharacter Build(ICharacterBuilder charBuilder) { currFGChar = charBuilder.CreateCharacter(services); charBuilder.Build(services); return(currFGChar); }