Skip to main content

EOS_Achievements_PlayerAchievement

Type Alias EOS_Achievements_PlayerAchievement 

Source
pub type EOS_Achievements_PlayerAchievement = _tagEOS_Achievements_PlayerAchievement;
Expand description

Contains information about a single player achievement.

Aliased Type§

#[repr(C)]
pub struct EOS_Achievements_PlayerAchievement { pub ApiVersion: i32, pub AchievementId: *const i8, pub Progress: f64, pub UnlockTime: i64, pub StatInfoCount: i32, pub StatInfo: *const _tagEOS_Achievements_PlayerStatInfo, pub DisplayName: *const i8, pub Description: *const i8, pub IconURL: *const i8, pub FlavorText: *const i8, }

Fields§

§ApiVersion: i32

API Version: Set this to EOS_ACHIEVEMENTS_PLAYERACHIEVEMENT_API_LATEST.

§AchievementId: *const i8

This achievement’s unique identifier.

§Progress: f64

Progress towards completing this achievement (as a percentage).

§UnlockTime: i64

The POSIX timestamp when the achievement was unlocked. If the achievement has not been unlocked, this value will be EOS_ACHIEVEMENTS_ACHIEVEMENT_UNLOCKTIME_UNDEFINED.

§StatInfoCount: i32

The number of player stat info entries associated with this achievement.

§StatInfo: *const _tagEOS_Achievements_PlayerStatInfo

Array of EOS_Achievements_PlayerStatInfo structures containing information about stat thresholds used to unlock the achievement and the player’s current values for those stats.

§DisplayName: *const i8

Localized display name for the achievement based on this specific player’s current progress on the achievement. @note The current progress is updated when EOS_Achievements_QueryPlayerAchievements succeeds and when an achievement is unlocked.

§Description: *const i8

Localized description for the achievement based on this specific player’s current progress on the achievement. @note The current progress is updated when EOS_Achievements_QueryPlayerAchievements succeeds and when an achievement is unlocked.

§IconURL: *const i8

URL of an icon to display for the achievement based on this specific player’s current progress on the achievement. This may be null if there is no data configured in the dev portal. @note The current progress is updated when EOS_Achievements_QueryPlayerAchievements succeeds and when an achievement is unlocked.

§FlavorText: *const i8

Localized flavor text that can be used by the game in an arbitrary manner. This may be null if there is no data configured in the dev portal.