コード例 #1
0
        /// <summary>Evaluates the next story line.</summary>
        /// <param name="story">The story.</param>
        /// <param name="options">The options.</param>
        public virtual void EvaluateNextStoryLine(IStory story, ConsoleUserInterfaceOptions options)
        {
            if (story == null)
            {
                return;
            }

            story.Continue();

            Interpreter.RetrieveDebugSourceForLatestContent(story);

            OutputManager.ShowCurrentText(story, options);

            if (story.HasCurrentTags)
            {
                OutputManager.ShowTags(story.currentTags, options);
            }

            if ((Errors.Count > 0 || Warnings.Count > 0))
            {
                OutputManager.ShowWarningsAndErrors(Warnings, Errors, options);
            }

            Errors.Clear();
            Warnings.Clear();
        }