#[repr(C)]pub struct PlayerCamera {
pub __base: TESCamera,
pub pad39: u8,
pub pad3A: u16,
pub cameraTarget: ActorHandle,
}
Fields§
§__base: TESCamera
§pad39: u8
§pad3A: u16
§cameraTarget: ActorHandle
Implementations§
Source§impl PlayerCamera
impl PlayerCamera
Sourcepub const RTTI: VariantID = RTTI_PlayerCamera
pub const RTTI: VariantID = RTTI_PlayerCamera
Address & offset of the runtime type information (RTTI) identifier.
Sourcepub const VTABLE: [VariantID; 1] = VTABLE_PlayerCamera
pub const VTABLE: [VariantID; 1] = VTABLE_PlayerCamera
Address & offset of the virtual function table.
Sourcepub fn get_singleton() -> Option<&'static PlayerCamera>
pub fn get_singleton() -> Option<&'static PlayerCamera>
Returns the singleton instance of Self
.
pub fn force_first_person(&mut self) -> bool
pub fn force_third_person(&mut self) -> bool
pub fn is_in_bleedout_mode(&self) -> bool
pub fn is_in_first_person(&self) -> bool
pub fn is_in_free_camera_mode(&self) -> bool
pub fn is_in_third_person(&self) -> bool
pub fn push_camera_state(&mut self, state: CameraState)
pub fn q_camera_equals(&self, camera_state: CameraState, is_vr: bool) -> bool
pub fn toggle_free_camera_mode(&mut self, freeze_time: bool)
pub fn update_third_person(&mut self, weapon_drawn: bool)
Sourcepub fn get_runtime_data(&self) -> Result<&VR_RUNTIME_DATA, RelocationError>
pub fn get_runtime_data(&self) -> Result<&VR_RUNTIME_DATA, RelocationError>
Gets fields whose offset is determined at runtime.
§Errors
This function may return an error if the module’s runtime is not available or if any error occurs while fetching the runtime state.
Specifically, it calls ModuleState::map_active
, which could result in an error.
Sourcepub fn get_runtime_data_mut(
&mut self,
) -> Result<&mut VR_RUNTIME_DATA, RelocationError>
pub fn get_runtime_data_mut( &mut self, ) -> Result<&mut VR_RUNTIME_DATA, RelocationError>
Gets mutable fields whose offset is determined at runtime.
§Errors
This function may return an error if the module’s runtime is not available or if any error occurs while fetching the runtime state.
Specifically, it calls ModuleState::map_active_mut
, which could result in an error.
Sourcepub fn get_runtime_data2(&self) -> Result<&RUNTIME_DATA2, RelocationError>
pub fn get_runtime_data2(&self) -> Result<&RUNTIME_DATA2, RelocationError>
Gets fields whose offset is determined at runtime.
§Errors
This function may return an error if the module’s runtime is not available or if any error occurs while fetching the runtime state.
Specifically, it calls ModuleState::map_active
, which could result in an error.
Sourcepub fn get_runtime_data2_mut(
&mut self,
) -> Result<&mut RUNTIME_DATA2, RelocationError>
pub fn get_runtime_data2_mut( &mut self, ) -> Result<&mut RUNTIME_DATA2, RelocationError>
Gets mutable fields whose offset is determined at runtime.
§Errors
This function may return an error if the module’s runtime is not available or if any error occurs while fetching the runtime state.
Specifically, it calls ModuleState::map_active_mut
, which could result in an error.
Sourcepub fn get_vr_runtime_data(&self) -> Result<&VR_RUNTIME_DATA, RelocationError>
pub fn get_vr_runtime_data(&self) -> Result<&VR_RUNTIME_DATA, RelocationError>
Gets fields whose offset is determined at runtime.
§Errors
This function may return an error if the module’s runtime is not available or if any error occurs while fetching the runtime state.
Specifically, it calls ModuleState::map_active
, which could result in an error.
Sourcepub fn get_vr_runtime_data_mut(
&mut self,
) -> Result<&mut VR_RUNTIME_DATA, RelocationError>
pub fn get_vr_runtime_data_mut( &mut self, ) -> Result<&mut VR_RUNTIME_DATA, RelocationError>
Gets mutable fields whose offset is determined at runtime.
§Errors
This function may return an error if the module’s runtime is not available or if any error occurs while fetching the runtime state.
Specifically, it calls ModuleState::map_active_mut
, which could result in an error.
Trait Implementations§
Source§impl Clone for PlayerCamera
impl Clone for PlayerCamera
Source§fn clone(&self) -> PlayerCamera
fn clone(&self) -> PlayerCamera
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more