aboutsummaryrefslogtreecommitdiff
path: root/pkg/client/state.go
blob: 576721ca4f2357cba60535a96a9862a30c9a50b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package client

import (
	"shell-game-launcher/pkg/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
}