Struct ldtk2::NeighbourLevel
source · pub struct NeighbourLevel {
pub dir: String,
pub level_iid: String,
pub level_uid: Option<i64>,
}
Expand description
Nearby level info
Fields§
§dir: String
A lowercase string tipping on the level location (n
orth, s
outh, w
est,
e
ast).
Since 1.4.0, this value can also be <
(neighbour depth is lower), >
(neighbour depth is greater) or o
(levels overlap and share the same world
depth).
Since 1.5.3, this value can also be nw
,ne
,sw
or se
for levels only
touching corners.
level_iid: String
Neighbour Instance Identifier
level_uid: Option<i64>
WARNING: this deprecated value is no longer exported since version 1.2.0 Replaced
by: levelIid
Trait Implementations§
source§impl Clone for NeighbourLevel
impl Clone for NeighbourLevel
source§fn clone(&self) -> NeighbourLevel
fn clone(&self) -> NeighbourLevel
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for NeighbourLevel
impl Debug for NeighbourLevel
source§impl<'de> Deserialize<'de> for NeighbourLevel
impl<'de> Deserialize<'de> for NeighbourLevel
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for NeighbourLevel
impl Send for NeighbourLevel
impl Sync for NeighbourLevel
impl Unpin for NeighbourLevel
impl UnwindSafe for NeighbourLevel
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more