Class EOS_Achievements_DefinitionV2
java.lang.Object
com.sun.jna.Structure
host.anzo.eossdk.eos.sdk.achievements.EOS_Achievements_DefinitionV2
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
EOS_Achievements_DefinitionV2.ByReference,EOS_Achievements_DefinitionV2.ByValue
@FieldOrder({"ApiVersion","AchievementId","UnlockedDisplayName","UnlockedDescription","LockedDisplayName","LockedDescription","FlavorText","UnlockedIconURL","LockedIconURL","IsHidden","StatThresholdsCount","StatThresholds"})
public class EOS_Achievements_DefinitionV2
extends com.sun.jna.Structure
implements AutoCloseable
Contains information about a single achievement definition with localized text.
- 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 TypeFieldDescriptionAchievement ID that can be used to uniquely identify the achievement.intAPI Version: Set this to EOS_ACHIEVEMENTS_DEFINITIONV2_API_LATEST.static final intThe most recent version of the EOS_Achievements_DefinitionV2 struct.Localized flavor text that can be used by the game in an arbitrary manner.EOS_Bool.EOS_TRUEif the achievement is hidden;EOS_Bool.EOS_FALSEotherwise.Localized description for the achievement when it is locked or hidden.Localized display name for the achievement when it is locked or hidden.URL of an icon to display for the achievement when it is locked or hidden.Array of `EOS_Achievements_StatThresholds` that need to be satisfied to unlock this achievement.intThe number of stat thresholds used to monitor progress towards this achievement.Localized description for the achievement when it has been unlocked.Localized display name for the achievement when it has been unlocked.URL of an icon to display for the achievement when it is 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_DEFINITIONV2_API_LATEST
public static final int EOS_ACHIEVEMENTS_DEFINITIONV2_API_LATESTThe most recent version of the EOS_Achievements_DefinitionV2 struct.- See Also:
-
ApiVersion
public int ApiVersionAPI Version: Set this to EOS_ACHIEVEMENTS_DEFINITIONV2_API_LATEST. -
AchievementId
Achievement ID that can be used to uniquely identify the achievement. -
UnlockedDisplayName
Localized display name for the achievement when it has been unlocked. -
UnlockedDescription
Localized description for the achievement when it has been unlocked. -
LockedDisplayName
Localized display name for the achievement when it is locked or hidden. -
LockedDescription
Localized description for the achievement when it is locked or hidden. -
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. -
UnlockedIconURL
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
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. -
IsHidden
EOS_Bool.EOS_TRUEif the achievement is hidden;EOS_Bool.EOS_FALSEotherwise. -
StatThresholdsCount
public int StatThresholdsCountThe number of stat thresholds used to monitor progress towards this achievement. -
StatThresholds
Array of `EOS_Achievements_StatThresholds` that need to be satisfied to unlock this achievement. Consists of Name and Threshold Value.
-
-
Constructor Details
-
EOS_Achievements_DefinitionV2
public EOS_Achievements_DefinitionV2() -
EOS_Achievements_DefinitionV2
public EOS_Achievements_DefinitionV2(com.sun.jna.Pointer peer)
-
-
Method Details
-
release
public void release()Release the memory associated with EOS_Achievements_DefinitionV2. This must be called on data retrieved from EOS_Achievements_CopyAchievementDefinitionV2ByIndex or EOS_Achievements_CopyAchievementDefinitionV2ByAchievementId. -
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-