pub struct PlayerData {
pub account_name: String,
pub character_name: String,
pub character_position: [f32; 3],
pub character_facing: [f32; 3],
pub profession: u32,
pub elite_specialization: u32,
pub mount_index: u32,
pub character_state: CharacterState,
}Fields§
§account_name: StringAccount name of current player.
character_name: StringCharacter name of current player.
character_position: [f32; 3]Current position of character.
character_facing: [f32; 3]Current facing direction of character.
profession: u32Profession of character.
elite_specialization: u32Current 3rd specialization of character.
mount_index: u32Index of the mount, if applicable.
character_state: CharacterStateCurrent state of the character.
Implementations§
Source§impl PlayerData
impl PlayerData
Sourcepub unsafe fn read(data: *const RealTimeData) -> Self
pub unsafe fn read(data: *const RealTimeData) -> Self
Trait Implementations§
Source§impl Clone for PlayerData
impl Clone for PlayerData
Source§fn clone(&self) -> PlayerData
fn clone(&self) -> PlayerData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PlayerData
impl Debug for PlayerData
Source§impl<'de> Deserialize<'de> for PlayerData
impl<'de> Deserialize<'de> for PlayerData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PlayerData
impl RefUnwindSafe for PlayerData
impl Send for PlayerData
impl Sync for PlayerData
impl Unpin for PlayerData
impl UnwindSafe for PlayerData
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