예제 #1
0
        public static bool IsValidCardPool(AbstractDeck input_deck)
        {
            string CardPool = input_deck.GetCardPool();

            if (CardPool == "")
            {
                Console.WriteLine("ERROR >>> Card Pool is empty");
                return(false);
            }
            return(true);
        }
예제 #2
0
        public static string[] GetListDeckFactions(AbstractDeck input_deck)
        {
            string CardPool = input_deck.GetCardPool();

            if (!IsValidCardPool(input_deck))
            {
                return(new string[] { "" });
            }
            else if (!CardPool.Contains(":"))
            {
                return(new string[] { CardPool });
            }
            else
            {
                return(CardPool.Split(':'));
            }
        }