base documentation of konstructor
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package konstructor
|
||||
|
||||
// Framework context (state)
|
||||
type KContext struct {
|
||||
ScreenType ScreenType
|
||||
ActiveMenu MenuMapKey
|
||||
@@ -10,6 +11,7 @@ type KContext struct {
|
||||
LiveCount int
|
||||
}
|
||||
|
||||
// Check the current screen type
|
||||
func (c *KContext) ScreenTypeIs(name ScreenType) bool {
|
||||
return c.ScreenType == name
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user