Esempio n. 1
0
        public string ToText(Card card)
        {
            var text = new StringBuilder();

            text.Append(EffectType.Text());

            if (LayoutType == Models.LayoutType.Block || LayoutType == Models.LayoutType.Important)
            {
                text.Append("\r\n");
            }

            var prefix = string.Empty;

            foreach (var token in Tokens)
            {
                if (token.TokenType != EffectTokenType.Inline_Text)
                {
                    text.Append(prefix);
                }
                text.Append(token.ToText(card));
                prefix = " ";
            }

            return(text.ToString());
        }