Table of Contents

Class Achievement

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

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

templateID int

The 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

templateID int

The template ID for the achievement.

tier byte

The current tier (0-based index).

value uint

The current value/progress.

Fields

CurrentTier

The current tier of the achievement (0-based index).

public byte CurrentTier

Field Value

byte

CurrentValue

The current value/progress for the achievement (e.g., kills, points).

public uint CurrentValue

Field Value

uint

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

long

Properties

NextTierValue

The value required to reach the next tier, or 0 if at max tier.

public uint NextTierValue { get; }

Property Value

uint

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; }

Property Value

AchievementTemplate