pub struct DialogueUnit { /* private fields */ }
Implementations§
Source§impl DialogueUnit
impl DialogueUnit
pub fn new(name: &str) -> Self
pub fn clear_dialogue(&mut self)
pub fn iter_dialogue(&self) -> Iter<'_, DialogueEntry>
pub fn add_instruction(&mut self, instruction: &str)
pub fn add_dialogue(&mut self, name: &str, message: &str)
pub fn remove_last_dialogue(&mut self) -> Option<DialogueEntry>
pub fn set_responder_name(&mut self, name: &str)
Trait Implementations§
Source§impl Debug for DialogueUnit
impl Debug for DialogueUnit
Source§impl Default for DialogueUnit
impl Default for DialogueUnit
Source§fn default() -> DialogueUnit
fn default() -> DialogueUnit
Returns the “default value” for a type. Read more
Source§impl UnitProcess for DialogueUnit
impl UnitProcess for DialogueUnit
Auto Trait Implementations§
impl Freeze for DialogueUnit
impl RefUnwindSafe for DialogueUnit
impl Send for DialogueUnit
impl Sync for DialogueUnit
impl Unpin for DialogueUnit
impl UnwindSafe for DialogueUnit
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