[−][src]Struct rscache::def::osrs::NpcDefinition
Contains all the information about a certain npc fetched from the cache through the NpcLoader.
The NpcModelData
and the NpcAnimationData
were hidden in the documents
because these are rarely accessed, they contain useless information in most use-cases.
Fields
id: u16
name: String
model_data: NpcModelData
animation_data: NpcAnimationData
size: usize
actions: [String; 5]
visible_on_minimap: bool
combat_level: Option<u16>
configs: Vec<u16>
varbit_id: Option<u16>
varp_index: Option<u16>
interactable: bool
pet: bool
params: HashMap<u32, String>
Trait Implementations
impl Clone for NpcDefinition
[src]
fn clone(&self) -> NpcDefinition
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for NpcDefinition
[src]
impl Default for NpcDefinition
[src]
fn default() -> NpcDefinition
[src]
impl Definition for NpcDefinition
[src]
impl Eq for NpcDefinition
[src]
impl Loader<NpcDefinition> for NpcLoader
[src]
fn new<S: Store>(cache: &Cache<S>) -> Result<NpcLoader>
[src]
fn load(&self, id: u16) -> Option<&NpcDefinition>
[src]
impl PartialEq<NpcDefinition> for NpcDefinition
[src]
fn eq(&self, other: &NpcDefinition) -> bool
[src]
fn ne(&self, other: &NpcDefinition) -> bool
[src]
impl StructuralEq for NpcDefinition
[src]
impl StructuralPartialEq for NpcDefinition
[src]
Auto Trait Implementations
impl RefUnwindSafe for NpcDefinition
impl Send for NpcDefinition
impl Sync for NpcDefinition
impl Unpin for NpcDefinition
impl UnwindSafe for NpcDefinition
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,