private void Beginstory(Story story) { SetComponentsVisibility(true); _storyTeller = _storyTellerFactory.BeginStory(story); UpdateDisplay(); }
private static Story ReadFromZipArchive(string path) { Story extractedStory; using (var archive = ZipFile.OpenRead(path)) { var storyData = archive.Entries.SingleOrDefault(x => x.Name.EndsWith(".data")).Extract<StoryData>(); extractedStory = new Story { Data = storyData, Parts = ExtractChoices(archive).ToDictionary(x => x.Id) }; } return extractedStory; }
public void Dispose(bool disposing) { _story = null; }
internal StoryTeller(Story story) { _story = story; _currentPart = story.Parts[story.Data.Id]; }