示例#1
0
        /// <summary>
        /// Builds a string for the final screens.
        /// </summary>
        /// <returns>String for the DSL</returns>
        public override string ToString()
        {
            string total;

            if (!String.IsNullOrEmpty(DeathScreen))
            {
                DeathScreen = DeathScreen.Replace('\\', '/');
            }

            if (!String.IsNullOrEmpty(EndScreen))
            {
                EndScreen = EndScreen.Replace('\\', '/');
            }

            total = "\t<screens>\r\n" +
                    "\t\t<screen_end_game>" + EndScreen + "</screen_end_game>\r\n" +
                    "\t\t<screen_dead_game>" + DeathScreen + "</screen_dead_game>\r\n" +
                    "\t</screens>\r\n";

            return(total);
        }