mirror of
https://github.com/mvvasilev/last_light.git
synced 2025-04-19 20:59:51 +03:00
21 lines
303 B
Go
21 lines
303 B
Go
package state
|
|
|
|
import (
|
|
"mvvasilev/last_light/render"
|
|
|
|
"github.com/gdamore/tcell/v2"
|
|
)
|
|
|
|
type GameState interface {
|
|
OnInput(e *tcell.EventKey)
|
|
OnTick(dt int64) GameState
|
|
CollectDrawables() []render.Drawable
|
|
}
|
|
|
|
type PausableState interface {
|
|
Pause()
|
|
Unpause()
|
|
SetPaused(paused bool)
|
|
|
|
GameState
|
|
}
|