[][src]Enum rs_tiled_json::layer::LayerDataContainer

pub enum LayerDataContainer {
    TileLayer {
        data: Vec<u32>,
    },
    ObjectGroup {
        draworder: DrawOrder,
        objects: Vec<Object>,
    },
    ImageLayer {
        image: String,
        transparentcolor: Option<Color>,
    },
    Group {
        layers: Vec<Layer>,
    },
}

The LayerDataContainer is an enum that describes the four different types of layers that can be present within a map. You can access these values directly if need be, but I have included layer methods that will retrieve this data without the need to resolve the enum yourself. The code can be quite verbose when working with namespaces and identifiers this large.

Variants

TileLayer

Fields of TileLayer

data: Vec<u32>
ObjectGroup

Fields of ObjectGroup

draworder: DrawOrderobjects: Vec<Object>
ImageLayer

Fields of ImageLayer

image: Stringtransparentcolor: Option<Color>
Group

Fields of Group

layers: Vec<Layer>

Trait Implementations

impl Debug for LayerDataContainer[src]

Auto Trait Implementations

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> From<T> for T[src]

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

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.