17 lines
379 B
Go
17 lines
379 B
Go
package maps
|
|
|
|
// Content is a struct that holds info on the type of a map tile
|
|
type Content struct {
|
|
Type string `json:"type"`
|
|
Code string `json:"code"`
|
|
}
|
|
|
|
// Map is a struct that holds info on a map tile
|
|
type Map struct {
|
|
Name string `json:"name"`
|
|
Skin string `json:"skin"`
|
|
X int `json:"x"`
|
|
Y int `json:"y"`
|
|
Content Content `json:"content"`
|
|
}
|