Class Map
- Namespace
- DotTiled
- Assembly
- DotTiled.dll
Represents a Tiled map.
public class Map : HasPropertiesBase, IHasProperties
- Inheritance
-
Map
- Implements
- Inherited Members
Properties
BackgroundColor
The background color of the map.
public Color BackgroundColor { get; set; }
Property Value
Class
The class of this map.
public string Class { get; set; }
Property Value
CompressionLevel
The compression level to use for tile layer data (defaults to -1, which means to use the algorithm default). Typically only useful for parsing, but may be interesting for certain use cases.
public int CompressionLevel { get; set; }
Property Value
Height
The height of the map in tiles.
public required uint Height { get; set; }
Property Value
HexSideLength
Only for hexagonal maps. Determines the width or height (depending on the staggered axis) of the tile's edge, in pixels.
public Optional<uint> HexSideLength { get; set; }
Property Value
Infinite
Whether this map is infinite. An infinite map has no fixed size and can grow in all directions. Its layer data is stored in chunks.
public bool Infinite { get; set; }
Property Value
Layers
Hierarchical list of layers. Group is a layer type which can contain sub-layers to create a hierarchy.
public List<BaseLayer> Layers { get; set; }
Property Value
NextLayerID
Stores the next available ID for new layers. This number is used to prevent reuse of the same ID after layers have been removed.
public required uint NextLayerID { get; set; }
Property Value
NextObjectID
Stores the next available ID for new objects. This number is used to prevent reuse of the same ID after objects have been removed.
public required uint NextObjectID { get; set; }
Property Value
Orientation
Map orientation.
public required MapOrientation Orientation { get; set; }
Property Value
ParallaxOriginX
X coordinate of the parallax origin in pixels.
public float ParallaxOriginX { get; set; }
Property Value
ParallaxOriginY
Y coordinate of the parallax origin in pixels.
public float ParallaxOriginY { get; set; }
Property Value
Properties
Map properties.
public List<IProperty> Properties { get; set; }
Property Value
RenderOrder
The order in which tiles on tile layers are rendered.
public RenderOrder RenderOrder { get; set; }
Property Value
StaggerAxis
For staggered and hexagonal maps, determines which axis (X or Y) is staggered.
public Optional<StaggerAxis> StaggerAxis { get; set; }
Property Value
StaggerIndex
For staggered and hexagonal maps, determines whether the "even" or "odd" indexes along the staggered axis are shifted.
public Optional<StaggerIndex> StaggerIndex { get; set; }
Property Value
TileHeight
The height of a tile.
public required uint TileHeight { get; set; }
Property Value
TileWidth
The width of a tile.
public required uint TileWidth { get; set; }
Property Value
TiledVersion
The Tiled version used to save the file.
public Optional<string> TiledVersion { get; set; }
Property Value
Tilesets
List of tilesets used by the map.
public List<Tileset> Tilesets { get; set; }
Property Value
Version
The TMX format version. Is incremented to match minor Tiled releases.
public required string Version { get; set; }
Property Value
Width
The width of the map in tiles.
public required uint Width { get; set; }
Property Value
Methods
GetProperties()
The properties attached to the object.
public override IList<IProperty> GetProperties()