From 8ebec372cf97934220643de928e97de9e95bc68d Mon Sep 17 00:00:00 2001 From: Dane Johnson Date: Wed, 29 Dec 2021 16:00:51 -0600 Subject: [PATCH] Select a choice --- src/storybook.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/storybook.cpp b/src/storybook.cpp index 2caf9c3..0eefcf8 100644 --- a/src/storybook.cpp +++ b/src/storybook.cpp @@ -77,6 +77,11 @@ void Storybook::Play() { for (auto c : *current->footer.choices) { print_choice(c.second); } + printf("Make a selection: "); + int choice; + std::cin >> choice; + Find((*current->footer.choices)[choice]->id); + break; default: IsEnded = true; // TODO }