Skip to content

Commit

Permalink
changed ids from ints to uint32s
Browse files Browse the repository at this point in the history
  • Loading branch information
Noofbiz committed Sep 3, 2018
1 parent 12e8460 commit 9a8b245
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tileset.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type Tileset struct {
// TileHeight is the (maximum) height of the tiles in the tileset
TileHeight int `xml:"tileheight,attr"`
// Spacing is the spacing of the tiles in pixels between the tiles in the tileset
Spacing float64 `xml:"spacing,attr"`
Spacing int `xml:"spacing,attr"`
// Margin is the margin around the tiles in pixels of the tiles in the tileset
Margin float64 `xml:"margin,attr"`
// TileCount is the number of tiles in the tileset
Expand Down Expand Up @@ -99,7 +99,7 @@ type Terrain struct {
// Tile is a single tile in a tile set
type Tile struct {
// ID is the local tile id within its tileset
ID int `xml:"id,attr"`
ID uint32 `xml:"id,attr"`
// Type is the type of the tile
Type string `xml:"type,attr"`
// Terrain defines the terrain type of each corner of the tile, given as
Expand Down

0 comments on commit 9a8b245

Please sign in to comment.