Class GameProgressCondition
Met when the player's global, slot-independent progress says so: an extra was unlocked, the
game was completed, or it was completed enough times.
Inheritance
GameProgressCondition
Assembly: Serenity.UnityAchievements.Infrastructure.dll
Syntax
[AchievementConditionCategory(AchievementConditionCategory.Triggers)]
public class GameProgressCondition : AchievementCondition
Constructors
GameProgressCondition()
Creates an unauthored condition, as Unity's polymorphic serializer does.
Declaration
public GameProgressCondition()
GameProgressCondition(GameProgressConditionMode, string, int)
Creates a condition reading the player's global progress.
Declaration
public GameProgressCondition(GameProgressConditionMode mode, string extraId = null, int requiredCount = 1)
Parameters
| Type |
Name |
Description |
| GameProgressConditionMode |
mode |
Which question is asked.
|
| string |
extraId |
The extra whose unlock is required, for the extra mode.
|
| int |
requiredCount |
How many completions are required, for the count mode.
|
Properties
DisplayName
Declaration
public override string DisplayName { get; }
Property Value
The extra whose unlock is required.
Declaration
public string ExtraId { get; }
Property Value
Mode
Which question this condition asks.
Declaration
public GameProgressConditionMode Mode { get; }
Property Value
NeedsTick
Polled, for the same reason ScoreThresholdCondition is: global progress
changes without this leaf being told, so it has to be asked.
Declaration
public override bool NeedsTick { get; }
Property Value
RequiredCount
How many completions are required.
Declaration
public int RequiredCount { get; }
Property Value
Methods
Describe(bool)
Declaration
public override string Describe(bool isNested)
Parameters
| Type |
Name |
Description |
| bool |
isNested |
|
Returns
GetProgress(in AchievementEvaluationContext)
Declaration
public override AchievementConditionProgress GetProgress(in AchievementEvaluationContext context)
Parameters
Returns
IsMet(in AchievementEvaluationContext)
Declaration
public override bool IsMet(in AchievementEvaluationContext context)
Parameters
Returns
Validate()
Declaration
public override string Validate()
Returns