pub struct InventoryEntryData {
pub object: *mut TESBoundObject,
pub extraLists: Option<TESBox<BSSimpleList<ExtraDataList>>>,
pub countDelta: i32,
pub pad14: u32,
}
Fields§
§object: *mut TESBoundObject
§extraLists: Option<TESBox<BSSimpleList<ExtraDataList>>>
§countDelta: i32
§pad14: u32
Implementations§
Source§impl InventoryEntryData
impl InventoryEntryData
pub const fn new(object: *mut TESBoundObject, count_delta: i32) -> Self
pub fn add_extra_list(&mut self, extra: ExtraDataList)
pub fn can_item_be_taken( &self, no_equipped: bool, no_favorited: bool, no_quest_item: bool, ) -> bool
pub fn get_display_name(&mut self) -> Option<&CStr>
pub fn get_missing_display_name(&self) -> Option<&str>
pub fn get_enchantment(&self) -> *mut EnchantmentItem
pub fn get_enchantment_charge(&self) -> Option<f64>
pub const fn get_object(&self) -> Option<&TESBoundObject>
pub fn get_owner(&self) -> Option<&TESForm>
pub fn get_soul_level(&self) -> Option<SoulLevel>
pub fn get_value(&self) -> i32
pub fn get_weight(&self) -> Option<f32>
pub fn is_enchanted(&self) -> bool
pub fn is_favorited(&self) -> bool
pub fn is_leveled(&self) -> bool
pub fn is_poisoned(&self) -> bool
pub fn is_worn(&self) -> bool
pub fn is_owned_by(&self, test_owner: *mut Actor, default_to: bool) -> bool
pub fn is_quest_object(&self) -> bool
pub fn poison_object(&mut self, alchemy_item: *mut AlchemyItem, count: u32)
Trait Implementations§
Source§impl Clone for InventoryEntryData
impl Clone for InventoryEntryData
Source§fn clone(&self) -> InventoryEntryData
fn clone(&self) -> InventoryEntryData
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for InventoryEntryData
impl RefUnwindSafe for InventoryEntryData
impl !Send for InventoryEntryData
impl !Sync for InventoryEntryData
impl Unpin for InventoryEntryData
impl UnwindSafe for InventoryEntryData
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