Files
gorpg/src/konstructor/kcontext.go

18 lines
381 B
Go

package konstructor
// Framework context (state)
type KContext struct {
ScreenType ScreenType
ActiveMenu MenuMapKey
ActiveDialog DialogMapKey
CurrentLevel int
CurrentPlayground int
Multiplayer bool
LiveCount int
}
// Check the current screen type
func (c *KContext) ScreenTypeIs(name ScreenType) bool {
return c.ScreenType == name
}