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

pub struct ObjectDefinition {
    pub id: u16,
    pub model_data: ObjectModelData,
    pub name: String,
    pub config_id: Option<u16>,
    pub map_area_id: Option<u16>,
    pub map_scene_id: u16,
    pub animation_id: u16,
    pub solid: bool,
    pub shadow: bool,
    pub obstruct_ground: bool,
    pub supports_items: Option<u8>,
    pub actions: [String; 5],
    pub interact_type: u8,
    pub rotated: bool,
    pub ambient_sound_id: u16,
    pub blocks_projectile: bool,
    pub wall_or_door: Option<u8>,
    pub contoured_ground: Option<u8>,
    pub config_change_dest: Vec<u16>,
    pub params: HashMap<u32, String>,
}

Contains all the information about a certain object fetched from the cache through the ObjectLoader.

The ObjectModelData is hidden in the documents because it is rarely accessed, it contains useless information in most use-cases.

Fields

id: u16model_data: ObjectModelDataname: Stringconfig_id: Option<u16>map_area_id: Option<u16>map_scene_id: u16animation_id: u16solid: boolshadow: boolobstruct_ground: boolsupports_items: Option<u8>actions: [String; 5]interact_type: u8rotated: boolambient_sound_id: u16blocks_projectile: boolwall_or_door: Option<u8>contoured_ground: Option<u8>config_change_dest: Vec<u16>params: HashMap<u32, String>

Trait Implementations

impl Clone for ObjectDefinition[src]

impl Debug for ObjectDefinition[src]

impl Default for ObjectDefinition[src]

impl Definition for ObjectDefinition[src]

impl Eq for ObjectDefinition[src]

impl Loader<ObjectDefinition> for ObjectLoader[src]

impl PartialEq<ObjectDefinition> for ObjectDefinition[src]

impl StructuralEq for ObjectDefinition[src]

impl StructuralPartialEq for ObjectDefinition[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.