move menu and playground to konstructor
This commit is contained in:
@@ -10,6 +10,7 @@ type ContextInterface interface {
|
||||
}
|
||||
|
||||
type DomainInterface interface {
|
||||
GetMenuMap() MenuMap
|
||||
Init()
|
||||
}
|
||||
|
||||
|
||||
18
konstructor/menu.go
Executable file
18
konstructor/menu.go
Executable file
@@ -0,0 +1,18 @@
|
||||
package konstructor
|
||||
|
||||
type MenuMap map[string]Menu
|
||||
|
||||
type MenuLayout struct {
|
||||
Background string
|
||||
}
|
||||
|
||||
type MenuItem struct {
|
||||
ID string
|
||||
Label string
|
||||
Handler func()
|
||||
}
|
||||
|
||||
type Menu struct {
|
||||
MenuLayout MenuLayout
|
||||
MenuItems []MenuItem
|
||||
}
|
||||
12
konstructor/playground.go
Executable file
12
konstructor/playground.go
Executable file
@@ -0,0 +1,12 @@
|
||||
package konstructor
|
||||
|
||||
type PlaygroundObject struct {
|
||||
Image string
|
||||
PosX int
|
||||
PosY int
|
||||
}
|
||||
|
||||
type Playground struct {
|
||||
Background string
|
||||
Objects []PlaygroundObject
|
||||
}
|
||||
Reference in New Issue
Block a user