[−][src]Struct tiled_json_rs::Layer
A map can contain any number of layers.
Layers have sub-types such as (enum) LayerType::TileLayer(TileLayer)
which contains the data for that sub-type.
Fields
name: String
offset_x: f32
Horizontal layer offset in pixels (default: 0)
offset_y: f32
Vertical layer offset in pixels (default: 0)
opacity: f32
Value between 0 and 1
properties: HashMap<String, TiledValue>
layer_type: LayerType
The LayerType
object also contains the data relating to the type
visible: bool
x: i32
Horizontal layer offset in tiles. Always 0.
y: i32
Vertical layer offset in tiles. Always 0.
Trait Implementations
impl PartialEq<Layer> for Layer
[src]
impl Clone for Layer
[src]
fn clone(&self) -> Layer
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Layer
[src]
impl<'de> Deserialize<'de> for Layer
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for Layer
impl Unpin for Layer
impl Sync for Layer
impl UnwindSafe for Layer
impl RefUnwindSafe for Layer
Blanket Implementations
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,