[−][src]Struct tmx::map::Map
Fields
metadata: Metadata
orientation: 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: bool
background_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]
pub fn from_json(s: &str) -> Result<Map, Error>
[src]
pub fn from_json_data(buf: &[u8]) -> Result<Map, Error>
[src]
pub fn from_xml(s: &str) -> Result<Map, Error>
[src]
pub fn from_xml_data(buf: &[u8]) -> Result<Map, Error>
[src]
Trait Implementations
impl Clone for Map
[src]
impl Debug for Map
[src]
impl<'de> Deserialize<'de> for Map
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,