#[repr(C)]pub struct Actor {
pub __base: TESObjectREFR,
}
Fields§
§__base: TESObjectREFR
Implementations§
Source§impl Actor
impl Actor
Sourcepub const RTTI: VariantID = RTTI_Actor
pub const RTTI: VariantID = RTTI_Actor
Address & offset of the runtime type information (RTTI) identifier.
Sourcepub const VTABLE: [VariantID; 10] = VTABLE_Actor
pub const VTABLE: [VariantID; 10] = VTABLE_Actor
Address & offset of the virtual function table.
The number of tables is the same as the number of classes with inherited virtual functions.
Sourcepub fn get_actor_runtime_data(
&self,
) -> Result<&ACTOR_RUNTIME_DATA, RelocationError>
pub fn get_actor_runtime_data( &self, ) -> Result<&ACTOR_RUNTIME_DATA, RelocationError>
Get runtime offset definition fields.
§Errors
- This function may return an error if the module’s state cannot be accessed, or if the
map_active
call fails when fetching the current version. - If the pointer is null
- If the pointer is unaligned
Sourcepub fn get_actor_runtime_data_mut(
&mut self,
) -> Result<&mut ACTOR_RUNTIME_DATA, RelocationError>
pub fn get_actor_runtime_data_mut( &mut self, ) -> Result<&mut ACTOR_RUNTIME_DATA, RelocationError>
Get mutable runtime offset definition fields.
§Errors
- This function may return an error if the module’s state cannot be accessed, or if the
map_active
call fails when fetching the current version. - If the pointer is null
- If the pointer is unaligned
pub fn lookup_reference_by_handle(ref_handle: RefHandle) -> NiPointer<Self>
pub fn lookup_by_handle_actor( ref_handle: RefHandle, refr_out: &mut NiPointer<Self>, ) -> bool
pub fn add_animation_graph_event_sink( &self, sink: *mut BSTEventSink<BSAnimationGraphEvent>, ) -> bool
pub fn add_cast_power(&mut self, power: Option<NonNull<SpellItem>>)
pub fn add_death_items(&mut self)
pub fn add_spell(&mut self, spell: Option<NonNull<SpellItem>>)
pub fn add_to_faction(&mut self, faction: Option<NonNull<TESFaction>>, rank: u8)
pub fn get_equipped_entry_data( &self, left_hand: bool, ) -> Option<NonNull<InventoryEntryData>>
Trait Implementations§
Source§impl RefCountable for Actor
impl RefCountable for Actor
Source§fn inc_ref_count(&self)
fn inc_ref_count(&self)
Increment ref count
Source§fn dec_ref_count(&mut self)
fn dec_ref_count(&mut self)
Decrement ref count
Auto Trait Implementations§
impl !Freeze for Actor
impl RefUnwindSafe for Actor
impl !Send for Actor
impl !Sync for Actor
impl Unpin for Actor
impl UnwindSafe for Actor
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