pub struct NpcAst {
pub id: String,
pub name: String,
pub desc: String,
pub location: NpcLocationAst,
pub state: NpcStateValue,
pub movement: Option<NpcMovementAst>,
pub dialogue: Vec<(String, Vec<String>)>,
pub src_line: usize,
}Expand description
AST node describing an NPC definition.
Fields§
§id: String§name: String§desc: String§location: NpcLocationAst§state: NpcStateValue§movement: Option<NpcMovementAst>§dialogue: Vec<(String, Vec<String>)>§src_line: usizeTrait Implementations§
impl StructuralPartialEq for NpcAst
Auto Trait Implementations§
impl Freeze for NpcAst
impl RefUnwindSafe for NpcAst
impl Send for NpcAst
impl Sync for NpcAst
impl Unpin for NpcAst
impl UnwindSafe for NpcAst
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