Files
gorpg/konstructor/kcontext.go
2023-07-07 15:18:51 +02:00

15 lines
296 B
Go

package konstructor
type KContext struct {
ScreenType ScreenType
ActiveMenu MenuMapKey
ActiveDialog DialogMapKey
CurrentLevel int
CurrentPlayground int
Multiplayer bool
}
func (c *KContext) ScreenTypeIs(name ScreenType) bool {
return c.ScreenType == name
}