pub struct StoryPage {
pub speaker: Option<StorySpeaker>,
pub text: String,
pub jump: Option<u32>,
pub music: Option<AudioClipHandle>,
pub sounds: Vec<AudioClipHandle>,
pub stage: StoryStage,
pub ops: Vec<StoryOp>,
pub gates: Vec<StoryGate>,
}Expand description
One click-through page of a StoryNode.
Fields§
§speaker: Option<StorySpeaker>The speaking character, shown as a name plate. None = narration.
text: StringThe dialog text, pre-wrapped with explicit newlines.
jump: Option<u32>BehaviorNode index advancing jumps to, overriding the default next-page / fall-through order.
music: Option<AudioClipHandle>Music current at this page (AudioClip reference). Re-triggering the already-playing track is seamless.
sounds: Vec<AudioClipHandle>One-shot effects played when the page shows.
stage: StoryStageStage dressing current at this page.
ops: Vec<StoryOp>Flag operations run when the page shows.
gates: Vec<StoryGate>Conditional jumps evaluated before the page shows: the first gate whose condition passes redirects play to its target node instead.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for StoryPage
impl<'de> Deserialize<'de> for StoryPage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for StoryPage
impl RefUnwindSafe for StoryPage
impl Send for StoryPage
impl Sync for StoryPage
impl Unpin for StoryPage
impl UnsafeUnpin for StoryPage
impl UnwindSafe for StoryPage
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