[][src]Struct tmx::map::Map

pub struct Map {
    pub metadata: Metadata,
    pub orientation: Orientation,
    pub render_order: RenderOrder,
    pub compression_level: i32,
    pub width: i32,
    pub height: i32,
    pub tile_width: i32,
    pub tile_height: i32,
    pub infinite: bool,
    pub background_color: Option<String>,
    pub next_layer_id: u32,
    pub next_object_id: u32,
    pub layers: Vec<Layer>,
    pub tilesets: Vec<Tileset>,
}

Fields

metadata: Metadataorientation: Orientation

Map orientation. Tiled supports “orthogonal”, “isometric”, “staggered” and “hexagonal”

render_order: RenderOrder

The order in which tiles on tile layers are rendered. Valid values are right-down (the default), right-up, left-down and left-up. In all cases, the map is drawn row-by-row. (only supported for orthogonal maps at the moment)

compression_level: i32

The compression level to use for tile layer data (defaults to -1, which means to use the algorithm default).

width: i32

The map width in tiles.

height: i32

The map height in tiles.

tile_width: i32

The width of a tile.

tile_height: i32

The height of a tile.

infinite: boolbackground_color: Option<String>

The background color of the map. (optional, may include alpha value since 0.15 in the form #AARRGGBB)

next_layer_id: u32

Stores the next available ID for new layers. This number is stored to prevent reuse of the same ID after layers have been removed. (since 1.2)

next_object_id: u32

Stores the next available ID for new objects. This number is stored to prevent reuse of the same ID after objects have been removed. (since 0.11)

layers: Vec<Layer>tilesets: Vec<Tileset>

Implementations

impl Map[src]

Trait Implementations

impl Clone for Map[src]

impl Debug for Map[src]

impl<'de> Deserialize<'de> for Map[src]

impl PartialEq<Map> for Map[src]

impl StructuralPartialEq for Map[src]

Auto Trait Implementations

impl RefUnwindSafe for Map

impl Send for Map

impl Sync for Map

impl Unpin for Map

impl UnwindSafe for Map

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.