bool HasProgression { get; set; }

robot_2Generated
code_blocksInput

Description

The HasProgression property of the Achievement class indicates whether the achievement has a progression component. This means that the achievement can be partially completed, and its progress can be tracked over time. If HasProgression is true, the achievement supports tracking of its completion status, allowing for incremental progress updates.

Usage

Use the HasProgression property to determine if an achievement supports progression tracking. This can be useful for displaying progress bars or other UI elements that reflect the player's progress towards completing the achievement.

Example

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

if (achievement.HasProgression)
{
    // The achievement supports progression
    float progress = achievement.ProgressionFraction;
    Console.WriteLine($"Achievement progress: {progress * 100}%");
}
else
{
    // The achievement does not support progression
    Console.WriteLine("This achievement does not have progression.");
}