bool HasProgression { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The HasProgression property of the Achievement class indicates whether the achievement has a progression component. This is useful for achievements that are not simply unlocked or locked, but have a measurable progress towards completion.

Usage

Use the HasProgression property to determine if an achievement supports progression tracking. This can be particularly useful when displaying achievements to users, allowing you to show a progress bar or similar UI element if progression is supported.

Example

// Example of checking if an achievement has progression
Achievement achievement = new Achievement();

if (achievement.HasProgression)
{
    // Display progression UI
    float progress = achievement.ProgressionFraction;
    Console.WriteLine($"Achievement Progress: {progress * 100}%");
}
else
{
    // Handle achievements without progression
    Console.WriteLine("This achievement does not support progression.");
}