#[repr(C)]pub struct BSTimer {Show 18 fields
pub unk00: u64,
pub lastPerformanceCount: u32,
pub clamp: f32,
pub clampRemainder: f32,
pub delta: f32,
pub realTimeDelta: f32,
pub unk1C: u32,
pub unk20: u32,
pub unk24: f32,
pub unk28: u32,
pub unk2C: u32,
pub unk30: u32,
pub unk34: u8,
pub unk35: u8,
pub useGlobalTimeMultiplierTarget: bool,
pub pad37: u8,
pub pad38: u32,
pub pad3C: u32,
}
Expand description
Represents the BSTimer
class from C++.
Fields§
§unk00: u64
§lastPerformanceCount: u32
§clamp: f32
§clampRemainder: f32
§delta: f32
§realTimeDelta: f32
§unk1C: u32
§unk20: u32
§unk24: f32
§unk28: u32
§unk2C: u32
§unk30: u32
§unk34: u8
§unk35: u8
§useGlobalTimeMultiplierTarget: bool
§pad37: u8
§pad38: u32
§pad3C: u32
Implementations§
Source§impl BSTimer
impl BSTimer
Sourcepub fn get_singleton() -> Option<&'static BSTimer>
pub fn get_singleton() -> Option<&'static BSTimer>
Gets the singleton instance of BSTimer
.
Sourcepub fn q_global_time_multiplier() -> Option<f32>
pub fn q_global_time_multiplier() -> Option<f32>
Gets the global time multiplier.
Sourcepub fn q_global_time_multiplier_target() -> Option<f32>
pub fn q_global_time_multiplier_target() -> Option<f32>
Gets the target global time multiplier.
Sourcepub fn set_global_time_multiplier(&mut self, multiplier: f32, arg2: bool)
pub fn set_global_time_multiplier(&mut self, multiplier: f32, arg2: bool)
Sets the global time multiplier.
Trait Implementations§
impl StructuralPartialEq for BSTimer
Auto Trait Implementations§
impl Freeze for BSTimer
impl RefUnwindSafe for BSTimer
impl Send for BSTimer
impl Sync for BSTimer
impl Unpin for BSTimer
impl UnwindSafe for BSTimer
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