pub enum StrongholdPieceData {
Straight {
entry_door: StrongholdSmallDoorType,
left_child: bool,
right_child: bool,
},
PrisonHall {
entry_door: StrongholdSmallDoorType,
},
LeftTurn {
entry_door: StrongholdSmallDoorType,
},
RightTurn {
entry_door: StrongholdSmallDoorType,
},
RoomCrossing {
entry_door: StrongholdSmallDoorType,
crossing_type: i32,
},
StraightStairsDown {
entry_door: StrongholdSmallDoorType,
},
StairsDown {
entry_door: StrongholdSmallDoorType,
is_source: bool,
},
FiveCrossing {
entry_door: StrongholdSmallDoorType,
left_low: bool,
left_high: bool,
right_low: bool,
right_high: bool,
},
ChestCorridor {
entry_door: StrongholdSmallDoorType,
has_placed_chest: bool,
},
Library {
entry_door: StrongholdSmallDoorType,
is_tall: bool,
},
PortalRoom {
has_placed_spawner: bool,
},
FillerCorridor {
steps: i32,
},
}Expand description
Vanilla stronghold piece runtime state needed by postProcess.
Variants§
Straight
Straight corridor with optional side exits.
Fields
entry_door: StrongholdSmallDoorTypeDoor type generated at this piece’s entrance.
PrisonHall
Prison hall.
Fields
entry_door: StrongholdSmallDoorTypeDoor type generated at this piece’s entrance.
LeftTurn
Left turn.
Fields
entry_door: StrongholdSmallDoorTypeDoor type generated at this piece’s entrance.
RightTurn
Right turn.
Fields
entry_door: StrongholdSmallDoorTypeDoor type generated at this piece’s entrance.
RoomCrossing
Room crossing with one of five vanilla decorations.
Fields
entry_door: StrongholdSmallDoorTypeDoor type generated at this piece’s entrance.
StraightStairsDown
Straight stair corridor.
Fields
entry_door: StrongholdSmallDoorTypeDoor type generated at this piece’s entrance.
StairsDown
Descending stairs, including the source/start piece.
Fields
entry_door: StrongholdSmallDoorTypeDoor type generated at this piece’s entrance.
FiveCrossing
Five-way crossing with low/high side exits.
Fields
entry_door: StrongholdSmallDoorTypeDoor type generated at this piece’s entrance.
ChestCorridor
Corridor containing a loot chest.
Fields
entry_door: StrongholdSmallDoorTypeDoor type generated at this piece’s entrance.
Library
Library room.
Fields
entry_door: StrongholdSmallDoorTypeDoor type generated at this piece’s entrance.
PortalRoom
End portal room.
FillerCorridor
Collision filler corridor.
Implementations§
Trait Implementations§
Source§impl Clone for StrongholdPieceData
impl Clone for StrongholdPieceData
impl Copy for StrongholdPieceData
Source§impl Debug for StrongholdPieceData
impl Debug for StrongholdPieceData
impl Eq for StrongholdPieceData
Source§impl PartialEq for StrongholdPieceData
impl PartialEq for StrongholdPieceData
impl StructuralPartialEq for StrongholdPieceData
Auto Trait Implementations§
impl Freeze for StrongholdPieceData
impl RefUnwindSafe for StrongholdPieceData
impl Send for StrongholdPieceData
impl Sync for StrongholdPieceData
impl Unpin for StrongholdPieceData
impl UnsafeUnpin for StrongholdPieceData
impl UnwindSafe for StrongholdPieceData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§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> ⓘ
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> ⓘ
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 moreArc<SyncMutex<>>