[][src]Struct ldtk::Level

pub struct Level {
    pub bg_color: String,
    pub neighbours: Vec<HashMap<String, Option<Value>>>,
    pub level_bg_color: Option<String>,
    pub identifier: String,
    pub layer_instances: Vec<Option<LayerInstance>>,
    pub px_hei: i64,
    pub px_wid: i64,
    pub uid: i64,
    pub world_x: i64,
    pub world_y: i64,
}

Fields

bg_color: String

Background color of the level (same as bgColor, except the default value is automatically used here if its value is null)

neighbours: Vec<HashMap<String, Option<Value>>>

An array listing all other levels touching this one on the world map. The dir is a single lowercase character tipping on the level location (north, south, west, east). In "linear" world layouts, this array is populated with previous/next levels in array, and dir depends on the linear horizontal/vertical layout.

level_bg_color: Option<String>

Background color of the level. If null, the project defaultLevelBgColor should be used.

identifier: String

Unique String identifier

layer_instances: Vec<Option<LayerInstance>>px_hei: i64

Height of the level in pixels

px_wid: i64

Width of the level in pixels

uid: i64

Unique Int identifier

world_x: i64

World X coordinate in pixels

world_y: i64

World Y coordinate in pixels

Trait Implementations

impl Debug for Level[src]

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

impl Serialize for Level[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> 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, 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.