pub struct Level {Show 28 fields
pub name: String,
pub x: i32,
pub y: i32,
pub width: i32,
pub height: i32,
pub music_layer_1: bool,
pub music_layer_2: bool,
pub music_layer_3: bool,
pub music_layer_4: bool,
pub music_progress: String,
pub whisper: bool,
pub underwater: bool,
pub c: i32,
pub alt_music: String,
pub space: bool,
pub wind_pattern: String,
pub disable_down_transition: bool,
pub dark: bool,
pub fgdecals: FGDecals,
pub bgdecals: BGDecals,
pub fgtiles: FGTiles,
pub bgtiles: BGTiles,
pub solids: Solids,
pub bg: BGSolids,
pub entities: Entities,
pub triggers: Triggers,
pub objtiles: Option<ObjTiles>,
pub invalid: Vec<BinEl>,
}Expand description
A room in a Map. Only confusingly named fields are documented.
Fields§
§name: String§x: i32§y: i32§width: i32§height: i32§music_layer_1: bool§music_layer_2: bool§music_layer_3: bool§music_layer_4: bool§music_progress: String§whisper: bool§underwater: bool§c: i32Unclear what this does.
alt_music: StringUnclear what this does, though I believe that it is the default music used by Music triggers.
space: boolAlternate gravity. Behavior may be unstable in different game versions.
wind_pattern: String§disable_down_transition: bool§dark: boolAffects lighting shaders.
fgdecals: FGDecals§bgdecals: BGDecals§fgtiles: FGTiles§bgtiles: BGTiles§solids: Solids§bg: BGSolids§entities: Entities§triggers: Triggers§objtiles: Option<ObjTiles>Optional, as some serializers (such as older versions of Maple) don’t include these.
invalid: Vec<BinEl>All children that failed to parse.
Trait Implementations§
Source§impl BinElType for Level
impl BinElType for Level
Source§fn from_binel(binel: BinElValue) -> Result<Self>
fn from_binel(binel: BinElValue) -> Result<Self>
Deserialize self from a BinElValue.
Source§fn into_binel(self) -> BinElValue
fn into_binel(self) -> BinElValue
Serialize self into a BinElValue. Can never fail.
Source§fn maybe_attr() -> bool
fn maybe_attr() -> bool
Whether the
BinElType may serialize to a BinElValue::Attribute. Recommended.Source§fn elem_name() -> Option<&'static str>
fn elem_name() -> Option<&'static str>
If there is a single valid name when deserializing from an element, and you know it at
compile-time, implement this. Recommended.
Source§fn maybe_elem() -> bool
fn maybe_elem() -> bool
Whether the
BinElType may serialize to a BinElValue::Element. Recommended.impl StructuralPartialEq for Level
Auto Trait Implementations§
impl Freeze for Level
impl RefUnwindSafe for Level
impl Send for Level
impl Sync for Level
impl Unpin for Level
impl UnsafeUnpin for Level
impl UnwindSafe for Level
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more