pub struct JungleTemplePieceData {
pub height_position: Option<i32>,
pub placed_main_chest: bool,
pub placed_hidden_chest: bool,
pub placed_trap1: bool,
pub placed_trap2: bool,
}Expand description
Runtime state for vanilla JungleTemplePiece.
Fields§
§height_position: Option<i32>Vanilla ScatteredFeaturePiece.heightPosition; None means not height-adjusted yet.
placed_main_chest: boolWhether the main chest has already been placed.
Whether the hidden chest has already been placed.
placed_trap1: boolWhether the first arrow-dispenser trap has already been placed.
placed_trap2: boolWhether the second arrow-dispenser trap has already been placed.
Implementations§
Trait Implementations§
Source§impl Clone for JungleTemplePieceData
impl Clone for JungleTemplePieceData
Source§fn clone(&self) -> JungleTemplePieceData
fn clone(&self) -> JungleTemplePieceData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 JungleTemplePieceData
impl Debug for JungleTemplePieceData
Source§impl Default for JungleTemplePieceData
impl Default for JungleTemplePieceData
Source§fn default() -> JungleTemplePieceData
fn default() -> JungleTemplePieceData
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for JungleTemplePieceData
impl RefUnwindSafe for JungleTemplePieceData
impl Send for JungleTemplePieceData
impl Sync for JungleTemplePieceData
impl Unpin for JungleTemplePieceData
impl UnsafeUnpin for JungleTemplePieceData
impl UnwindSafe for JungleTemplePieceData
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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 moreWraps this value in an
Arc<SyncMutex<>>