hash out state
This commit is contained in:
parent
3b1033ff1a
commit
006a3a5b72
4 changed files with 101 additions and 71 deletions
20
state.go
Normal file
20
state.go
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
package roba
|
||||
|
||||
type Loc struct {
|
||||
X int
|
||||
Y int
|
||||
}
|
||||
|
||||
type Cell struct {
|
||||
Tile Tile
|
||||
}
|
||||
|
||||
type Map interface {
|
||||
OnTick(n int, s *State)
|
||||
Name() string
|
||||
}
|
||||
|
||||
type State struct {
|
||||
Layout *Layout
|
||||
Map Map
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue