konstructor file prefixes refactor

This commit is contained in:
2023-07-07 01:07:50 +02:00
parent faa6f00891
commit 8d2fcabc4b
14 changed files with 0 additions and 0 deletions

18
konstructor/kcontext.go Normal file
View File

@@ -0,0 +1,18 @@
package konstructor
type KContext struct {
ScreenType ScreenType
ActiveMenu MenuMapKey
ActiveDialog DialogMapKey
CurrentLevel int
CurrentPlayground int
Players []Player
}
func (c *KContext) getPrimaryPlayer() Player {
return c.Players[0]
}
func (c *KContext) ScreenTypeIs(name ScreenType) bool {
return c.ScreenType == name
}