pub struct StoryNode {
pub slug: String,
pub pages: Vec<StoryPage>,
pub choices: Vec<StoryChoice>,
pub choice_stage: StoryStage,
pub choice_music: Option<AudioClipHandle>,
pub choice_sounds: Vec<AudioClipHandle>,
pub choice_ops: Vec<StoryOp>,
pub choice_gates: Vec<StoryGate>,
}Expand description
One jump target in a Story: a run of pages optionally ending in a choice menu.
Fields§
§slug: StringThe heading slug this node was compiled from (diagnostics only).
pages: Vec<StoryPage>The click-through pages, in order.
choices: Vec<StoryChoice>The choice menu shown after the last page. Empty = no menu.
choice_stage: StoryStageStage dressing current at the choice menu.
choice_music: Option<AudioClipHandle>Music current at the choice menu (AudioClip reference).
choice_sounds: Vec<AudioClipHandle>One-shots played when the choice menu shows.
choice_ops: Vec<StoryOp>Flag operations run when the choice menu shows.
choice_gates: Vec<StoryGate>Conditional jumps evaluated before the choice menu shows.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for StoryNode
impl<'de> Deserialize<'de> for StoryNode
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 StoryNode
impl RefUnwindSafe for StoryNode
impl Send for StoryNode
impl Sync for StoryNode
impl Unpin for StoryNode
impl UnsafeUnpin for StoryNode
impl UnwindSafe for StoryNode
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