pub struct DialogueNode {
pub npc_text: String,
pub choices: Vec<DialogueChoice>,
}Fields§
§npc_text: String§choices: Vec<DialogueChoice>Implementations§
Source§impl DialogueNode
impl DialogueNode
pub fn new(npc_text: impl Into<String>) -> Self
pub fn add_choice(self, choice: DialogueChoice) -> Self
Trait Implementations§
Source§impl Clone for DialogueNode
impl Clone for DialogueNode
Source§fn clone(&self) -> DialogueNode
fn clone(&self) -> DialogueNode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DialogueNode
impl RefUnwindSafe for DialogueNode
impl Send for DialogueNode
impl Sync for DialogueNode
impl Unpin for DialogueNode
impl UnsafeUnpin for DialogueNode
impl UnwindSafe for DialogueNode
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