pub struct GameTransitions;Expand description
Pre-configured transitions for specific game state changes.
Implementations§
Source§impl GameTransitions
impl GameTransitions
Sourcepub fn title_to_character_creation() -> TransitionType
pub fn title_to_character_creation() -> TransitionType
Title Screen → Character Creation
Character Creation → Floor Navigation
Floor Navigation → Combat
Combat → Floor Navigation
Sourcepub fn to_death() -> TransitionType
pub fn to_death() -> TransitionType
Any → Death Screen (slow, dramatic)
Sourcepub fn to_boss() -> TransitionType
pub fn to_boss() -> TransitionType
Any → Boss Encounter (zoom in, dramatic)
Sourcepub fn floor_transition() -> TransitionType
pub fn floor_transition() -> TransitionType
Floor → Floor (noise dissolve)
Quick menu transition
Sourcepub fn pause_overlay() -> TransitionType
pub fn pause_overlay() -> TransitionType
Settings / pause overlay
Sourcepub fn to_victory() -> TransitionType
pub fn to_victory() -> TransitionType
Victory screen
Sourcepub fn panel_slide_left() -> TransitionType
pub fn panel_slide_left() -> TransitionType
Slide left for inventory/menu panels
Sourcepub fn panel_slide_right() -> TransitionType
pub fn panel_slide_right() -> TransitionType
Slide right for inventory/menu panels
Auto Trait Implementations§
impl Freeze for GameTransitions
impl RefUnwindSafe for GameTransitions
impl Send for GameTransitions
impl Sync for GameTransitions
impl Unpin for GameTransitions
impl UnsafeUnpin for GameTransitions
impl UnwindSafe for GameTransitions
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.