DomainProcess skeleton
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
package engine
|
||||
|
||||
import (
|
||||
"game/konstructor/entity"
|
||||
|
||||
"github.com/hajimehoshi/ebiten"
|
||||
)
|
||||
|
||||
@@ -9,5 +11,9 @@ func (e *Engine) PlaygroundDraw(screen *ebiten.Image) {
|
||||
}
|
||||
|
||||
func (e *Engine) PlaygroundUpdate() {
|
||||
e.Domain.GetLevel(e.KContext.CurrentLevel)
|
||||
level := e.Domain.GetLevel(e.KContext.CurrentLevel)
|
||||
e.Domain.Process(entity.DomainProcessOptions{
|
||||
Level: &level,
|
||||
KContext: e.KContext,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user