tweaks
This commit is contained in:
@@ -1,11 +1,16 @@
|
||||
package entity
|
||||
|
||||
type KContextScreen struct {
|
||||
Type string
|
||||
Value string
|
||||
type KContext struct {
|
||||
ScreenType string
|
||||
ScreenValue string
|
||||
CurrentLevel int
|
||||
Players []Player
|
||||
}
|
||||
|
||||
type KContext struct {
|
||||
Screen KContextScreen
|
||||
CurrentLevel int
|
||||
func (c *KContext) getPrimaryPlayer() Player {
|
||||
return c.Players[0]
|
||||
}
|
||||
|
||||
func (c *KContext) ScreenTypeIs(name string) bool {
|
||||
return c.ScreenType == name
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user