inventory screen skeleton
This commit is contained in:
@@ -29,6 +29,9 @@ func (e *Engine) Update(screen *ebiten.Image) error {
|
|||||||
if e.KContext.ScreenTypeIs("playground") {
|
if e.KContext.ScreenTypeIs("playground") {
|
||||||
e.PlaygroundUpdate()
|
e.PlaygroundUpdate()
|
||||||
}
|
}
|
||||||
|
if e.KContext.ScreenTypeIs("inventory") {
|
||||||
|
e.InventoryUpdate()
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -42,6 +45,9 @@ func (e *Engine) Draw(screen *ebiten.Image) {
|
|||||||
if e.KContext.ScreenTypeIs("playground") {
|
if e.KContext.ScreenTypeIs("playground") {
|
||||||
e.PlaygroundDraw(screen)
|
e.PlaygroundDraw(screen)
|
||||||
}
|
}
|
||||||
|
if e.KContext.ScreenTypeIs("inventory") {
|
||||||
|
e.InventoryDraw(screen)
|
||||||
|
}
|
||||||
if e.Action3Pressed() {
|
if e.Action3Pressed() {
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,16 @@
|
|||||||
package engine
|
package engine
|
||||||
|
|
||||||
import "game/konstructor/entity"
|
import (
|
||||||
|
"game/konstructor/entity"
|
||||||
|
|
||||||
|
"github.com/hajimehoshi/ebiten"
|
||||||
|
)
|
||||||
|
|
||||||
|
func (e *Engine) InventoryUpdate() {
|
||||||
|
}
|
||||||
|
|
||||||
|
func (e *Engine) InventoryDraw(screen *ebiten.Image) {
|
||||||
|
}
|
||||||
|
|
||||||
func (e *Engine) AddToInventory(item *entity.Item) {
|
func (e *Engine) AddToInventory(item *entity.Item) {
|
||||||
e.Domain.AddToInventory(item)
|
e.Domain.AddToInventory(item)
|
||||||
Reference in New Issue
Block a user