Class EOS_Achievements_PlayerAchievement
java.lang.Object
com.sun.jna.Structure
host.anzo.eossdk.eos.sdk.achievements.EOS_Achievements_PlayerAchievement
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
EOS_Achievements_PlayerAchievement.ByReference,EOS_Achievements_PlayerAchievement.ByValue
@FieldOrder({"ApiVersion","AchievementId","Progress","UnlockTime","StatInfoCount","StatInfo","DisplayName","Description","IconURL","FlavorText"})
public class EOS_Achievements_PlayerAchievement
extends com.sun.jna.Structure
implements AutoCloseable
Contains information about a single player achievement.
- Since:
- 8/19/2023
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from class com.sun.jna.Structure
com.sun.jna.Structure.FieldOrder, com.sun.jna.Structure.StructField -
Field Summary
FieldsModifier and TypeFieldDescriptionThis achievement's unique identifier.intAPI Version: Set this toEOS_ACHIEVEMENTS_PLAYERACHIEVEMENT_API_LATEST.Localized description for the achievement based on this specific player's current progress on the achievement.
The current progress is updated when EOS_Achievements_QueryPlayerAchievements succeeds and when an achievement is unlocked.Localized display name for the achievement based on this specific player's current progress on the achievement.
The current progress is updated when EOS_Achievements_QueryPlayerAchievements succeeds and when an achievement is unlocked.static final intTimestamp value representing an undefined UnlockTime for EOS_Achievements_PlayerAchievementstatic final intThe most recent version of the EOS_Achievements_PlayerAchievement struct.Localized flavor text that can be used by the game in an arbitrary manner.URL of an icon to display for the achievement based on this specific player's current progress on the achievement.doubleProgress towards completing this achievement (as a percentage).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.intThe number of player stat info entries associated with this achievement.longThe POSIX timestamp when the achievement was unlocked.Fields inherited from class com.sun.jna.Structure
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.sun.jna.Structure
allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, calculateSize, clear, createFieldsOrder, createFieldsOrder, createFieldsOrder, createFieldsOrder, dataEquals, dataEquals, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFieldOrder, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write, writeField, writeField, writeField
-
Field Details
-
EOS_ACHIEVEMENTS_ACHIEVEMENT_UNLOCKTIME_UNDEFINED
public static final int EOS_ACHIEVEMENTS_ACHIEVEMENT_UNLOCKTIME_UNDEFINEDTimestamp value representing an undefined UnlockTime for EOS_Achievements_PlayerAchievement- See Also:
-
EOS_ACHIEVEMENTS_PLAYERACHIEVEMENT_API_LATEST
public static final int EOS_ACHIEVEMENTS_PLAYERACHIEVEMENT_API_LATESTThe most recent version of the EOS_Achievements_PlayerAchievement struct.- See Also:
-
ApiVersion
public int ApiVersionAPI Version: Set this toEOS_ACHIEVEMENTS_PLAYERACHIEVEMENT_API_LATEST. -
AchievementId
This achievement's unique identifier. -
Progress
public double ProgressProgress towards completing this achievement (as a percentage). -
UnlockTime
public long UnlockTimeThe POSIX timestamp when the achievement was unlocked. If the achievement has not been unlocked, this value will beEOS_ACHIEVEMENTS_ACHIEVEMENT_UNLOCKTIME_UNDEFINED. -
StatInfoCount
public int StatInfoCountThe number of player stat info entries associated with this achievement. -
StatInfo
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
Localized display name for the achievement based on this specific player's current progress on the achievement.
The current progress is updated when EOS_Achievements_QueryPlayerAchievements succeeds and when an achievement is unlocked. -
Description
Localized description for the achievement based on this specific player's current progress on the achievement.
The current progress is updated when EOS_Achievements_QueryPlayerAchievements succeeds and when an achievement is unlocked. -
IconURL
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.
The current progress is updated when EOS_Achievements_QueryPlayerAchievements succeeds and when an achievement is unlocked. -
FlavorText
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.
-
-
Constructor Details
-
EOS_Achievements_PlayerAchievement
public EOS_Achievements_PlayerAchievement() -
EOS_Achievements_PlayerAchievement
public EOS_Achievements_PlayerAchievement(com.sun.jna.Pointer peer)
-
-
Method Details
-
release
public void release()Release the memory associated with a player achievement. This must be called on data retrieved from EOS_Achievements_CopyPlayerAchievementByIndex or EOS_Achievements_CopyPlayerAchievementByAchievementId. -
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-