Versions in this module Expand all Collapse all v0 v0.2.1 Apr 23, 2022 Changes in this version + const DiagonalFlipFlag + const HorizontalFlipFlag + const VerticalFlipFlag + var FileSystem fs.FS + var TMXURL string + type Chunk struct + Height int + Inner string + Tiles []TileData + Width int + X int + Y int + type Data struct + Chunks []Chunk + Compression string + Encoding string + Inner string + Tiles []TileData + func (da *Data) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + type Ellipse struct + type Frame struct + Duration float64 + TileID uint32 + type Grid struct + Height float64 + Orientation string + Width float64 + type Group struct + Group []Group + ImageLayers []ImageLayer + Layers []Layer + Name string + ObjectGroups []ObjectGroup + OffsetX float64 + OffsetY float64 + Opacity float64 + Properties []Property + Visible int + func (g *Group) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + type Image struct + Data []Data + Format string + Height float64 + Source string + Transparent string + Width float64 + type ImageLayer struct + Images []Image + Name string + OffsetX float64 + OffsetY float64 + Opacity float64 + Properties []Property + Visible int + X float64 + Y float64 + func (i *ImageLayer) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + type Layer struct + Data []Data + Height int + Name string + OffsetX float64 + OffsetY float64 + Opacity float64 + Properties []Property + Visible int + Width int + X float64 + Y float64 + func (l *Layer) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + type Map struct + BackgroundColor string + Groups []Group + Height int + HexSideLength int + ImageLayers []ImageLayer + Layers []Layer + NextObjectID int + ObjectGroups []ObjectGroup + Orientation string + Properties []Property + RenderOrder string + StaggerAxis string + StaggerIndex string + TileHeight int + TileWidth int + TiledVersion string + Tilesets []Tileset + Version string + Width int + XMLName string + func Parse(r io.Reader) (Map, error) + func (m *Map) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + type Object struct + Ellipses []Ellipse + GID uint32 + Height float64 + ID uint32 + Images []Image + Name string + Polygons []Polygon + Polylines []Polyline + Properties []Property + Rotation float64 + Template string + Text []Text + Type string + Visible int + Width float64 + X float64 + Y float64 + func (o *Object) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + type ObjectGroup struct + Color string + DrawOrder string + Name string + Objects []Object + OffsetX float64 + OffsetY float64 + Opacity float64 + Properties []Property + Visible int + Width int + X int + Y int + func (o *ObjectGroup) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + type Point struct + type Polygon struct + Points string + type Polyline struct + Points string + type Property struct + Name string + Type string + Value string + func (p *Property) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + type Template struct + Objects []Object + Tilesets []Tileset + type Terrain struct + Name string + Tile uint32 + type Text struct + Bold int + CharData string + Color string + FontFamily string + Halign string + Italic int + Kerning int + PixelSize float64 + Strikeout int + Underline int + Valign string + Wrap int + func (t *Text) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + type Tile struct + AnimationFrames []Frame + ID uint32 + Image []Image + ObjectGroup []ObjectGroup + Probability float64 + Properties []Property + Terrain string + Type string + type TileData struct + Flipping uint32 + GID uint32 + RawGID uint32 + type TileOffset struct + X float64 + Y float64 + type Tileset struct + Columns int + FirstGID uint32 + Grid []Grid + Image []Image + Margin float64 + Name string + Properties []Property + Source string + Spacing int + TerrainTypes []Terrain + TileCount int + TileHeight int + TileOffset []TileOffset + TileWidth int + Tiles []Tile + WangSets []WangSet + func (t *Tileset) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + type WangCornerColor struct + Color string + Name string + Probability float64 + Tile uint32 + type WangEdgeColor struct + Color string + Name string + Probability float64 + Tile uint32 + type WangSet struct + Name string + Tile uint32 + WangCornerColors []WangCornerColor + WangEdgeColors []WangEdgeColor + WangTiles []WangTile + type WangTile struct + TileID uint32 + WangID string