Struct ddcore_rs::models::StatsDataBlock
source · [−]#[repr(C)]pub struct StatsDataBlock {Show 45 fields
pub ddstats_version: i32,
pub player_id: i32,
pub username: [u8; 32],
pub time: f32,
pub gems_collected: i32,
pub kills: i32,
pub daggers_fired: i32,
pub daggers_hit: i32,
pub enemies_alive: i32,
pub level_gems: i32,
pub homing: i32,
pub gems_despawned: i32,
pub gems_eaten: i32,
pub gems_total: i32,
pub daggers_eaten: i32,
pub per_enemy_alive_count: [i16; 17],
pub per_enemy_kill_count: [i16; 17],
pub is_player_alive: bool,
pub is_replay: bool,
pub death_type: u8,
pub is_in_game: bool,
pub replay_player_id: i32,
pub replay_player_name: [u8; 32],
pub survival_md5: [u8; 16],
pub time_lvl2: f32,
pub time_lvl3: f32,
pub time_lvl4: f32,
pub levi_down_time: f32,
pub orb_down_time: f32,
pub status: i32,
pub max_homing: i32,
pub time_max_homing: f32,
pub enemies_alive_max: i32,
pub time_enemies_alive_max: f32,
pub time_max: f32,
pub stats_base: [u8; 8],
pub stats_frames_loaded: i32,
pub stats_finished_loading: bool,
pub starting_hand: i32,
pub starting_homing: i32,
pub starting_time: f32,
pub prohibited_mods: bool,
pub replay_base: [u8; 8],
pub replay_buffer_length: i32,
pub replay_flag: bool,
/* private fields */
}Fields
ddstats_version: i32player_id: i32username: [u8; 32]time: f32gems_collected: i32kills: i32daggers_fired: i32daggers_hit: i32enemies_alive: i32level_gems: i32homing: i32gems_despawned: i32gems_eaten: i32gems_total: i32daggers_eaten: i32per_enemy_alive_count: [i16; 17]per_enemy_kill_count: [i16; 17]is_player_alive: boolis_replay: booldeath_type: u8is_in_game: boolreplay_player_id: i32replay_player_name: [u8; 32]survival_md5: [u8; 16]time_lvl2: f32time_lvl3: f32time_lvl4: f32levi_down_time: f32orb_down_time: f32status: i32max_homing: i32time_max_homing: f32enemies_alive_max: i32time_enemies_alive_max: f32time_max: f32stats_base: [u8; 8]stats_frames_loaded: i32stats_finished_loading: boolstarting_hand: i32starting_homing: i32starting_time: f32prohibited_mods: boolreplay_base: [u8; 8]replay_buffer_length: i32replay_flag: boolImplementations
sourceimpl StatsDataBlock
impl StatsDataBlock
pub fn player_username(&self) -> String
pub fn replay_player_username(&self) -> String
pub fn level_hash(&self) -> String
pub fn get_stats_pointer(&self) -> usize
pub fn get_replay_pointer(&self) -> usize
pub fn status(&self) -> GameStatus
Trait Implementations
sourceimpl Clone for StatsDataBlock
impl Clone for StatsDataBlock
sourcefn clone(&self) -> StatsDataBlock
fn clone(&self) -> StatsDataBlock
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for StatsDataBlock
impl Debug for StatsDataBlock
sourceimpl Default for StatsDataBlock
impl Default for StatsDataBlock
sourcefn default() -> StatsDataBlock
fn default() -> StatsDataBlock
Returns the “default value” for a type. Read more
sourceimpl Serialize for StatsDataBlock
impl Serialize for StatsDataBlock
Auto Trait Implementations
impl RefUnwindSafe for StatsDataBlock
impl Send for StatsDataBlock
impl Sync for StatsDataBlock
impl Unpin for StatsDataBlock
impl UnwindSafe for StatsDataBlock
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more