17 lines
202 B
Go
17 lines
202 B
Go
|
|
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
|
||
|
|
}
|