diff options
Diffstat (limited to '')
-rw-r--r-- | client/state.go | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/client/state.go b/client/state.go new file mode 100644 index 0000000..9565efc --- /dev/null +++ b/client/state.go @@ -0,0 +1,23 @@ +package client + +import ( + "shell-game-launcher/config" +) + +type State struct { + config *config.Config + currentMenu string + login string +} + +func NewState(config *config.Config, login string) *State { + cs := State{ + config: config, + currentMenu: "anonymous", + login: login, + } + if login != "" { + cs.currentMenu = "logged_in" + } + return &cs +} |