pub enum LineMode {
Normal,
Narration,
Debug,
}Expand description
How a DialogueEvent::Line should be treated for display or logging.
The runner sets this from trailing #tag metadata on the source line:
#debug yields LineMode::Debug, #narration yields LineMode::Narration.
If both are present, LineMode::Debug wins. All other lines use LineMode::Normal.
Tags that only exist to set the mode remain in DialogueEvent::Line::tags; your
host can ignore them once you branch on LineMode.
Variants§
Normal
Ordinary character or narrator line.
Narration
System or omniscient narration (subtitle style, VO bus, etc.).
Debug
Developer or QA line you may want to hide in release builds.
Trait Implementations§
impl Copy for LineMode
impl Eq for LineMode
impl StructuralPartialEq for LineMode
Auto Trait Implementations§
impl Freeze for LineMode
impl RefUnwindSafe for LineMode
impl Send for LineMode
impl Sync for LineMode
impl Unpin for LineMode
impl UnsafeUnpin for LineMode
impl UnwindSafe for LineMode
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
Compare self to
key and return true if they are equal.