pub struct ObjectDefinition {
Show 20 fields pub id: u16, 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>, pub model_data: ObjectModelData,
}
Expand description

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

Fields

id: u16name: 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>model_data: ObjectModelData

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Fetches multiple definitions from every archive in the index. Read more

Fetches multiple definitions from a single archive. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.