private static void DisplayChapter(Chapter chapter) { // Called from ExploreStory(). Console.WriteLine(); Console.Write("Choice Path: "); foreach (byte c in loadedStory.GetChoicePath(chapter)) { Console.Write(c); } Console.WriteLine(); Console.WriteLine("Chapter Title: " + chapter.Title); Console.WriteLine("Author: " + chapter.Author); Console.WriteLine(chapter.Text); Console.WriteLine(Environment.NewLine + "You have the following choices:"); for (int i = 0; i < chapter.ChildChapters.Count; i++) { if (chapter.ChildChapters[i] != 0xFFFF) { Console.Write(i + ") "); if (chapter.ChoiceDescriptions.Count > i && chapter.ChoiceDescriptions[i] != "") { Console.Write(chapter.ChoiceDescriptions[i]); } else { Console.Write(loadedStory.Chapters[chapter.ChildChapters[i]].Title); } Console.WriteLine(" (" + loadedStory.GetBranchSize(chapter.ChildChapters[i]) + ")"); } } }