pub enum StoryCommand {
}Expand description
Runtime-only event sent by UiInputSystem when a story:* action fires (a
stage click, a Space press, a choice button, a Start / Restart button). The
story system reads these and moves through the story graph. World authors
never declare this type directly.
Variants§
Start
Reset to the first node and show the stage.
Continue
Resume from the saved position, or start fresh when no save exists.
Advance
Advance the current page: complete a mid-reveal, else move on.
Choose(usize)
Pick the current choice menu’s option by index.
ToggleAuto
Toggle auto-advance (pages turn on their own once revealed).
ToggleSkip
Toggle fast-forward (instant reveal, rapid page turns; stops at menus).
ToggleLog
Toggle the dialogue-history overlay.
OpenSave
Open the slot overlay in save mode.
OpenLoad
Open the slot overlay in load mode.
Slot(usize)
Pick a slot in the open slot overlay.
TogglePause
Toggle the pause menu over the stage: show it from the stage (or close an open overlay first), and return to the stage when it is up.
OpenSettings
Open the settings screen, remembering the menu that opened it so it can be returned to.
CloseSettings
Close the settings screen, returning to whichever menu opened it.
Trait Implementations§
Source§impl Clone for StoryCommand
impl Clone for StoryCommand
Source§fn clone(&self) -> StoryCommand
fn clone(&self) -> StoryCommand
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StoryCommand
impl Debug for StoryCommand
Source§impl Default for StoryCommand
impl Default for StoryCommand
Source§fn default() -> StoryCommand
fn default() -> StoryCommand
impl Eq for StoryCommand
Source§impl PartialEq for StoryCommand
impl PartialEq for StoryCommand
impl StructuralPartialEq for StoryCommand
Auto Trait Implementations§
impl Freeze for StoryCommand
impl RefUnwindSafe for StoryCommand
impl Send for StoryCommand
impl Sync for StoryCommand
impl Unpin for StoryCommand
impl UnsafeUnpin for StoryCommand
impl UnwindSafe for StoryCommand
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> 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 moreSource§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
Source§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().