[−][src]Struct ldtk::Level
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 (n
orth, s
outh, w
est,
e
ast). 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]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for Level
[src]
Auto Trait Implementations
impl RefUnwindSafe for Level
[src]
impl Send for Level
[src]
impl Sync for Level
[src]
impl Unpin for Level
[src]
impl UnwindSafe for Level
[src]
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,
pub 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, 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.
pub 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>,