pointer fixes for kcontext and settings

This commit is contained in:
2023-07-05 22:05:48 +02:00
parent 5425e0036b
commit 5e4f63aecc
7 changed files with 33 additions and 33 deletions

View File

@@ -6,10 +6,6 @@ import (
"github.com/hajimehoshi/ebiten"
)
func (e *Engine) PlaygroundDraw(screen *ebiten.Image) {
e.Domain.GetLevel(e.KContext.CurrentLevel)
}
func (e *Engine) PlaygroundUpdate() {
level := e.Domain.GetLevel(e.KContext.CurrentLevel)
e.Domain.Process(entity.DomainProcessOptions{
@@ -17,3 +13,7 @@ func (e *Engine) PlaygroundUpdate() {
KContext: e.KContext,
})
}
func (e *Engine) PlaygroundDraw(screen *ebiten.Image) {
e.Domain.GetLevel(e.KContext.CurrentLevel)
}