last_light/game/state/game_state.go

22 lines
303 B
Go
Raw Normal View History

2024-04-24 17:11:33 +03:00
package state
import (
2024-05-06 20:43:35 +03:00
"mvvasilev/last_light/engine"
2024-04-24 17:11:33 +03:00
"github.com/gdamore/tcell/v2"
)
type GameState interface {
OnInput(e *tcell.EventKey)
OnTick(dt int64) GameState
2024-05-06 20:43:35 +03:00
CollectDrawables() []engine.Drawable
2024-04-24 17:11:33 +03:00
}
type PausableState interface {
Pause()
Unpause()
SetPaused(paused bool)
GameState
}