pub struct StaticTileData {
pub flags: Flags,
pub weight: u8,
pub quality_layer_light_id: u8,
pub quantity_weapon_class_armor_class: u8,
pub anim_id: u16,
pub hue: u8,
pub height_capacity: u8,
pub name: String,
}Expand description
Information about a given Static tile
Fields§
§flags: Flags§weight: u8§quality_layer_light_id: u8This field becomes Layer for wearables, and the Light ID for lights, otherwise quality.
quantity_weapon_class_armor_class: u8This field becomes weapon class for weapons, armor class for armor, or defaults to quantity.
anim_id: u16§hue: u8§height_capacity: u8This field becomes capacity for containers, otherwise height
name: StringTrait Implementations§
Source§impl Clone for StaticTileData
impl Clone for StaticTileData
Source§fn clone(&self) -> StaticTileData
fn clone(&self) -> StaticTileData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StaticTileData
impl Debug for StaticTileData
Source§impl PartialEq for StaticTileData
impl PartialEq for StaticTileData
Source§fn eq(&self, other: &StaticTileData) -> bool
fn eq(&self, other: &StaticTileData) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for StaticTileData
impl StructuralPartialEq for StaticTileData
Auto Trait Implementations§
impl Freeze for StaticTileData
impl RefUnwindSafe for StaticTileData
impl Send for StaticTileData
impl Sync for StaticTileData
impl Unpin for StaticTileData
impl UnsafeUnpin for StaticTileData
impl UnwindSafe for StaticTileData
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