[][src]Struct rscache::def::osrs::NpcDefinition

pub struct NpcDefinition {
    pub id: u16,
    pub name: String,
    pub model_data: NpcModelData,
    pub animation_data: NpcAnimationData,
    pub size: usize,
    pub actions: [String; 5],
    pub visible_on_minimap: bool,
    pub combat_level: Option<u16>,
    pub configs: Vec<u16>,
    pub varbit_id: Option<u16>,
    pub varp_index: Option<u16>,
    pub interactable: bool,
    pub pet: bool,
    pub params: HashMap<u32, String>,
}

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: u16name: Stringmodel_data: NpcModelDataanimation_data: NpcAnimationDatasize: usizeactions: [String; 5]visible_on_minimap: boolcombat_level: Option<u16>configs: Vec<u16>varbit_id: Option<u16>varp_index: Option<u16>interactable: boolpet: boolparams: HashMap<u32, String>

Trait Implementations

impl Clone for NpcDefinition[src]

impl Debug for NpcDefinition[src]

impl Default for NpcDefinition[src]

impl Definition for NpcDefinition[src]

impl Eq for NpcDefinition[src]

impl Loader<NpcDefinition> for NpcLoader[src]

impl PartialEq<NpcDefinition> for NpcDefinition[src]

impl StructuralEq for NpcDefinition[src]

impl StructuralPartialEq for NpcDefinition[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.