Skip to main content

EOS_Achievements_DefinitionV2

Type Alias EOS_Achievements_DefinitionV2 

Source
pub type EOS_Achievements_DefinitionV2 = _tagEOS_Achievements_DefinitionV2;
Expand description

Contains information about a single achievement definition with localized text.

Aliased Type§

#[repr(C)]
pub struct EOS_Achievements_DefinitionV2 { pub ApiVersion: i32, pub AchievementId: *const u8, pub UnlockedDisplayName: *const u8, pub UnlockedDescription: *const u8, pub LockedDisplayName: *const u8, pub LockedDescription: *const u8, pub FlavorText: *const u8, pub UnlockedIconURL: *const u8, pub LockedIconURL: *const u8, pub bIsHidden: i32, pub StatThresholdsCount: u32, pub StatThresholds: *const _tagEOS_Achievements_StatThresholds, }

Fields§

§ApiVersion: i32

API Version: Set this to EOS_ACHIEVEMENTS_DEFINITIONV2_API_LATEST.

§AchievementId: *const u8

Achievement ID that can be used to uniquely identify the achievement.

§UnlockedDisplayName: *const u8

Localized display name for the achievement when it has been unlocked.

§UnlockedDescription: *const u8

Localized description for the achievement when it has been unlocked.

§LockedDisplayName: *const u8

Localized display name for the achievement when it is locked or hidden.

§LockedDescription: *const u8

Localized description for the achievement when it is locked or hidden.

§FlavorText: *const u8

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.

§UnlockedIconURL: *const u8

URL of an icon to display for the achievement when it is unlocked. This may be null if there is no data configured in the dev portal.

§LockedIconURL: *const u8

URL of an icon to display for the achievement when it is locked or hidden. This may be null if there is no data configured in the dev portal.

§bIsHidden: i32

EOS_TRUE if the achievement is hidden; EOS_FALSE otherwise.

§StatThresholdsCount: u32

The number of stat thresholds used to monitor progress towards this achievement.

§StatThresholds: *const _tagEOS_Achievements_StatThresholds

Array of EOS_Achievements_StatThresholds that need to be satisfied to unlock this achievement. Consists of Name and Threshold Value.