Example #1
0
        private void ApplyOptions(TwisonStory story, TwisonLoaderOptions options)
        {
            var utility = new TwisonUtility();

            if (options.removeLinkTextFromPassages)
            {
                utility.RemoveLinksFromPassages(story);
            }

            if (options.collapseNewLines)
            {
                utility.CollapseNewLines(story, options.maxNewLineChain);
            }

            if (options.trimPassages)
            {
                utility.TrimPassages(story);
            }
        }
Example #2
0
 public TwisonLoader(TwisonLoaderOptions options)
 {
     _options = options;
 }
Example #3
0
 public TwisonLoader()
 {
     _options = TwisonLoaderOptions.GetDefaultOptions();
 }