Select a choice

This commit is contained in:
Dane Johnson 2021-12-29 16:00:51 -06:00
parent 901b4a004a
commit 8ebec372cf

View File

@ -77,6 +77,11 @@ void Storybook::Play() {
for (auto c : *current->footer.choices) { for (auto c : *current->footer.choices) {
print_choice(c.second); print_choice(c.second);
} }
printf("Make a selection: ");
int choice;
std::cin >> choice;
Find((*current->footer.choices)[choice]->id);
break;
default: default:
IsEnded = true; // TODO IsEnded = true; // TODO
} }