Example #1
0
        public void aaa_GenerateNewRandomPlot()
        {
            var theGenerator = new PlotGenerator_TonePatterns();
            var theLibrary   = StoryEngine.Incidents.DefaultLibrary.DefaultLibraryGenerator.LoadDefaultLibraryFromFile();

            var thePlot = theGenerator.GenerateNewPlot(theLibrary, null, 20);


            //Print narrative
            var theTextNarrative = thePlot.CompileTextNarrative();

            using (System.IO.StreamWriter file = new System.IO.StreamWriter(@"C:\\temp\\RandomPlot.txt"))
            {
                foreach (string line in theTextNarrative)
                {
                    file.WriteLine(line);
                }
            }

            Assert.IsTrue(true);

            throw new NotImplementedException();
        }
 public PlotGeneratorVM()
 {
     MyBase        = new PlotGenerator_TonePatterns();//#TODO - allow user to select between different types of generators
     TheLibrary    = new IncidentLibraryVM();
     MaxEventCount = 15;
 }