feat: add basic state machine implementation
This commit is contained in:
parent
ceb4cfad40
commit
75b4981566
3 changed files with 82 additions and 0 deletions
8
game/state/handler.go
Normal file
8
game/state/handler.go
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
package state
|
||||
|
||||
type Handler interface {
|
||||
Enter()
|
||||
Exit()
|
||||
Update(transitioner Transitioner, delta float32)
|
||||
Render()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue