You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// GetFileFullPath returns path to file relative to tileset file
@@ -61,36 +64,44 @@ type TilesetTileOffset struct {
61
64
Yint`xml:"y,attr"`
62
65
}
63
66
67
+
typeTerrainTypesstruct {
68
+
Terrain []*Terrain
69
+
}
70
+
64
71
// Terrain type
65
72
typeTerrainstruct {
66
73
// The name of the terrain type.
67
74
Namestring`xml:"name,attr"`
68
75
// The local tile-id of the tile that represents the terrain visually.
69
76
Tileuint32`xml:"tile,attr"`
70
77
// Custom properties
71
-
PropertiesProperties`xml:"properties>property"`
78
+
Properties*Properties`xml:"properties"`
72
79
}
73
80
74
81
// TilesetTile information
75
82
typeTilesetTilestruct {
76
83
// The local tile ID within its tileset.
77
84
IDuint32`xml:"id,attr"`
78
85
// The type of the tile. Refers to an object type and is used by tile objects. (optional) (since 1.0)
79
-
Typestring`xml:"type,attr"`
86
+
Typestring`xml:"type,attr,omitempty"`
80
87
// Defines the terrain type of each corner of the tile, given as comma-separated indexes in the terrain types
81
88
// array in the order top-left, top-right, bottom-left, bottom-right.
82
89
// Leaving out a value means that corner has no terrain. (optional) (since 0.9)
83
-
Terrainstring`xml:"terrain,attr"`
90
+
Terrainstring`xml:"terrain,attr,omitempty"`
84
91
// A percentage indicating the probability that this tile is chosen when it competes with others while editing with the terrain tool. (optional) (since 0.9)
0 commit comments