Struct RealTimeData

Source
#[repr(C)]
pub struct RealTimeData {
Show 23 fields pub game_build: u32, pub game_state: u32, pub language: u32, pub time_of_day: u32, pub map_id: u32, pub map_type: u32, pub ip_address: [u8; 4], pub cursor: [f32; 3], pub squad_markers: [[f32; 3]; 8], pub group_type: u32, pub group_member_count: u32, pub account_name: [c_char; 140], pub character_name: [c_char; 140], pub character_position: [f32; 3], pub character_facing: [f32; 3], pub profession: u32, pub elite_specialization: u32, pub mount_index: u32, pub character_state: u32, pub camera_position: [f32; 3], pub camera_facing: [f32; 3], pub camera_fov: f32, pub is_action_camera: IsActionCam, /* private fields */
}

Fields§

§game_build: u32

Game build number.

§game_state: u32

Current game state.

§language: u32

Language setting in game client.

§time_of_day: u32

Tyrian time of day.

§map_id: u32

Map id of current map.

§map_type: u32

Map type of current map.

§ip_address: [u8; 4]

IP address of current server.

§cursor: [f32; 3]

Location of cursor in the game world as ingame coordinates.

§squad_markers: [[f32; 3]; 8]

Locations of squad markers in the game world as ingame coordinates.

§group_type: u32

Type of current group.

§group_member_count: u32

Number of members in current group.

§account_name: [c_char; 140]

Account name of current player.

§character_name: [c_char; 140]

Character name of current player.

§character_position: [f32; 3]

Current position of character.

§character_facing: [f32; 3]

Current facing direction of character.

§profession: u32

Profession of character.

§elite_specialization: u32

Current 3rd specialization of character.

§mount_index: u32

Index of the mount, if applicable.

§character_state: u32

Current state of character.

§camera_position: [f32; 3]

Camera position in the game world.

§camera_facing: [f32; 3]

Camera facing direction.

§camera_fov: f32

Camera field of view.

§is_action_camera: IsActionCam

Whether action camera is enabled.

Implementations§

Source§

impl RealTimeData

Source

pub const SIG: i32 = 620_863_532i32

Signature of the RealTime API addon.

RealTime API data link identifier.

Source

pub fn get_ptr() -> *const Self

Source

pub fn read() -> Option<Self>

Trait Implementations§

Source§

impl Clone for RealTimeData

Source§

fn clone(&self) -> RealTimeData

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RealTimeData

Source§

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

Formats the value using the given formatter. Read more

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.