From 13d2d6b623e7363a0f717a74fb019d09e189c63b Mon Sep 17 00:00:00 2001 From: Misa Date: Thu, 16 Apr 2020 16:22:40 -0700 Subject: [PATCH] Add struct MenuStackFrame This will be pushed onto a stack when going to a different menu so the game can dynamically keep track of which menu option got you to which menu. --- desktop_version/src/Game.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/desktop_version/src/Game.h b/desktop_version/src/Game.h index fe714739..8b03fc25 100644 --- a/desktop_version/src/Game.h +++ b/desktop_version/src/Game.h @@ -70,6 +70,12 @@ namespace Menu }; }; +struct MenuStackFrame +{ + int option; + enum Menu::MenuName name; +}; + class Game {