Struct initiative_core::world::npc::Npc
source · pub struct Npc {
pub uuid: Uuid,
pub data: NpcData,
}
Fields§
§uuid: Uuid
§data: NpcData
Implementations§
source§impl Npc
impl Npc
pub fn display_summary(&self) -> SummaryView<'_>
pub fn display_description(&self) -> DescriptionView<'_>
pub fn display_details(&self, relations: NpcRelations) -> DetailsView<'_>
pub fn gender(&self) -> Gender
pub fn get_words() -> &'static [&'static str]
pub fn lock_all(&mut self)
pub fn apply_diff(&mut self, diff: &mut NpcData)
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)