pub struct NPC {
pub state: State,
pub purpose: Purpose,
pub meet: Conversation,
pub conversations: Vec<Conversation>,
}
Fields§
§state: State
Whether the NPC is on task
purpose: Purpose
Are they a Random, a Story, or an NPC with a specific Task, like a merchant?
meet: Conversation
The first time you speak only
conversations: Vec<Conversation>
Every other time
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NPC
impl<'de> Deserialize<'de> for NPC
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
impl Eq for NPC
impl StructuralPartialEq for NPC
Auto Trait Implementations§
impl Freeze for NPC
impl RefUnwindSafe for NPC
impl Send for NPC
impl Sync for NPC
impl Unpin for NPC
impl UnwindSafe for NPC
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