Files
survive/gamedata/gameinfo.go

17 lines
202 B
Go
Raw Permalink Normal View History

package gamedata
type Area struct {
Width int
Height int
}
func (a *Area) Area() int {
return a.Height * a.Width
}
type GameInfo struct {
Name string
Version string
Dimensions Area
}