GetMenu, SetMenu

This commit is contained in:
2023-07-04 20:10:14 +02:00
parent 1451bd90c0
commit 74272c09f2
6 changed files with 82 additions and 69 deletions

View File

@@ -11,6 +11,8 @@ type ContextInterface interface {
type DomainInterface interface {
Init()
GetMenu(name string) Menu
SetMenu(name string, menu Menu)
GetDialog() Dialog
}
@@ -29,7 +31,6 @@ type Konstructor struct {
Controller *Controller
Settings *Settings
KContext *KContext
MenuMap MenuMap
}
func (k Konstructor) Init() {
@@ -37,7 +38,6 @@ func (k Konstructor) Init() {
ebiten.SetWindowSize(k.Settings.Screen.Width, k.Settings.Screen.Height)
ebiten.SetWindowTitle(k.Settings.Name)
if err := ebiten.RunGame(&Engine{
MenuMap: k.MenuMap,
KContext: k.KContext,
Domain: k.Domain,
Controller: k.Controller,