Struct Context
#[repr(C)]pub struct Context {Show 17 fields
pub server_address: [u8; 28],
pub map_id: u32,
pub map_type: u32,
pub shard_id: u32,
pub instance: u32,
pub build_id: u32,
pub ui_state: UiState,
pub compass_width: u16,
pub compass_height: u16,
pub compass_rotation: f32,
pub player_x: f32,
pub player_y: f32,
pub map_center_x: f32,
pub map_center_y: f32,
pub map_scale: f32,
pub process_id: u32,
pub mount_index: Mount,
}Expand description
MumbleLink context specific to Guild Wars 2.
Fields§
§server_address: [u8; 28]Address of the server.
Contains socketaddr_in or socketaddr_in6.
map_id: u32Id of the current map.
map_type: u32Type of the current map.
See the [map_type] module for some known types.
shard_id: u32Current shard id.
instance: u32Current instance id.
build_id: u32Current build id.
ui_state: UiStateCurrent UI state bitflags.
compass_width: u16Compass width in pixels.
compass_height: u16Compass height in pixels.
compass_rotation: f32Compass rotation in radians.
player_x: f32Player position x in continent coordinates.
Not updated in competitive modes.
player_y: f32Player position y in continent coordinates.
Not updated in competitive modes.
map_center_x: f32Map center x in continent coordinates.
Not updated in competitive modes.
map_center_y: f32Map center y in continent coordinates.
Not updated in competitive modes.
map_scale: f32Map scale.
process_id: u32Process id.
mount_index: MountCurrently used mount.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
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