Class Achievement
Represents a player's progress toward a specific achievement, including current tier, value, and template reference.
public class Achievement
- Inheritance
-
Achievement
- Inherited Members
Constructors
Achievement(int)
Creates a new achievement with the given template ID, starting at tier 0 and value 0.
public Achievement(int templateID)
Parameters
templateIDintThe template ID for the achievement.
Achievement(int, byte, uint)
Creates a new achievement with the given template ID, tier, and value.
public Achievement(int templateID, byte tier, uint value)
Parameters
templateIDintThe template ID for the achievement.
tierbyteThe current tier (0-based index).
valueuintThe current value/progress.
Fields
CurrentTier
The current tier of the achievement (0-based index).
public byte CurrentTier
Field Value
CurrentValue
The current value/progress for the achievement (e.g., kills, points).
public uint CurrentValue
Field Value
Version
Version number for this achievement instance, used for client synchronization and updates. Incremented whenever the achievement's state changes in a way that requires client updates (e.g., tier or value changes). Not incremented for changes that do not affect client state (e.g., internal tracking of progress that doesn't meet the next tier requirement).
public long Version
Field Value
Properties
NextTierValue
The value required to reach the next tier, or 0 if at max tier.
public uint NextTierValue { get; }
Property Value
Remarks
Returns 0 if there are no tiers or if the current tier is the last one.
Template
The template that defines this achievement's structure, tiers, and rewards.
public AchievementTemplate Template { get; }