Struct NiAVObject

Source
#[repr(C)]
pub struct NiAVObject {
Show 14 fields pub __base: NiObjectNET, pub parent: *mut NiNode, pub parent_index: u32, pub unk03C: u32, pub collision_object: NiPointer<NiCollisionObject>, pub local_transform: NiTransform, pub world_transform: NiTransform, pub previous_world_transform: NiTransform, pub world_bound: NiBound, pub unk_f4: u32, pub unk_f8: u64, pub fade_amount: c_float, pub last_updated_frame_counter: u32, pub unk104: u64,
}

Fields§

§__base: NiObjectNET§parent: *mut NiNode§parent_index: u32§unk03C: u32§collision_object: NiPointer<NiCollisionObject>§local_transform: NiTransform§world_transform: NiTransform§previous_world_transform: NiTransform§world_bound: NiBound§unk_f4: u32§unk_f8: u64§fade_amount: c_float§last_updated_frame_counter: u32§unk104: u64

Implementations§

Source§

impl NiAVObject

Source

pub const RTTI: VariantID = RTTI_NiObject

Source

pub const NI_RTTI: VariantID = NiRTTI_NiObject

Source

pub const VTABLE: [VariantID; 1] = VTABLE_NiObject

Source

pub fn clone(&self) -> *mut NiAVObject

Source

pub fn get_app_culled(&self) -> bool

Returns whether the object is culled (hidden) in the application.

This function checks the visibility status of the object based on its flags. If the object has the Flag::Hidden set, it is considered culled (i.e., hidden) and will not be rendered or processed for certain operations.

The get_app_culled function essentially checks if the object is flagged as “hidden” by returning a boolean indicating whether the object is culled or not. This is commonly used for optimizing rendering performance by excluding objects that should not be visible.

§Returns
  • true if the object is culled (i.e., hidden).
  • false if the object is not culled (i.e., visible).
Source

pub fn get_collision_object(&self) -> *mut bhkCollisionObject

Source

pub fn get_flags(&self) -> Result<&Flag, RelocationError>

§Errors
Source

pub fn get_flags_mut(&mut self) -> Result<&mut Flag, RelocationError>

§Errors

Trait Implementations§

Source§

impl Debug for NiAVObject

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl RefCountable for NiAVObject

Source§

fn inc_ref_count(&self)

Increment ref count
Source§

fn dec_ref_count(&mut self)

Decrement ref count

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more