예제 #1
0
        public GameConfigBuilder SetPlayer1(string playerName, string deckString)
        {
            player1Name = playerName;
            Deck deck     = DeckSerializer.Deserialize(deckString);
            Card heroCard = deck.GetHero();

            player1HeroCard  = heroCard;
            player1HeroClass = heroCard.Class;
            player1Deck      = GetCardList(deck.CardDbfIds);
            formatType       = deck.Format;
            return(this);
        }
예제 #2
0
        public GameConfigBuilder SetPlayer2(string playerName, string deckString)
        {
            player2Name = playerName;
            Deck deck     = DeckSerializer.Deserialize(deckString);
            Card heroCard = deck.GetHero();

            player2HeroCard  = heroCard;
            player2HeroClass = heroCard.Class;
            player2Deck      = deck;
            formatType       = deck.Format;

            return(this);
        }