pub struct Stats {
pub minutes: [u32; 4],
pub longest_play: [u32; 4],
pub launches: [u32; 4],
pub installed_on: (u16, u8, u8),
pub updated_on: (u16, u8, u8),
pub launched_on: (u16, u8, u8),
pub xp: u16,
pub badges: Box<[BadgeProgress]>,
pub scores: Box<[BoardScores]>,
}
Expand description
Player-specific app stats, like playtime.
Fields§
§minutes: [u32; 4]
How many minutes the app was played for every player count from 1 to 4+.
Games with more than 4 players are recorded as 4 players. So, the last index (3) is “4+ players”.
The play time is calculated based on the number of the calls
to the update
callback. So, the number is an approximation
and may drift a bit.
Plays shorter than 1 minute are not recorded.
longest_play: [u32; 4]
How many minutes the app was played the longest for every player count from 1 to 4+.
Use this metric carefully. The runtime might or might not account for players pausing the app for days instead of exiting it. Which means, multiple play sessions may be counted as one.
launches: [u32; 4]
How many times the app was launched for every player count from 1 to 4+.
installed_on: (u16, u8, u8)
The date when the app was installed.
The date is a tuple of year, month, and day of month.
updated_on: (u16, u8, u8)
The date when the app was updated.
The date is a tuple of year, month, and day of month.
launched_on: (u16, u8, u8)
The date when the app was launched last time.
The date is a tuple of year, month, and day of month.
xp: u16
How much XP the player has earned in the game.
Cannot be more than 1000.
badges: Box<[BadgeProgress]>
The progress of earning each badge.
The len is equal to the number of badges that the app has.
See crate::Badges
.
scores: Box<[BoardScores]>
The high scores