[][src]Crate tiled_json_rs

A handy crate for parsing the Tiled JSON data in to a useable structure.

Notes:

  • GID starts at 0 for None
  • Local Id starts at 0 for TileSet

Structs

Chunk
Color
Frame
Group

Used to group layers if required

ImageLayer
Layer

A map can contain any number of layers.

Map
Object
ObjectGroup
Terrain
Text
Tile
TileLayer
TileRect

Used to provide the location and dimensions of the required tile on the tiles tileset image

TileSet

A tileset that associates information with each tile.

Vec2

A simple representation of a 2d Vector to pass coords

WangColor
WangSet
WangTile

Enums

DrawOrder
LayerType
ObjectType
Orientation
RenderOrder
StaggerAxis
StaggerIndex
TiledValue

A TiledValue is similar to JSON values. It contains the basic types that Tiled uses. This is generally used in the properties of layers, tiles, and objects.

Functions

layers_into_hashmap

Consumes a Vec<Layer> into owned HashMap<String, Layer> leaving an empty Vec in place.