Class AchievementAuthoringJudgement
What the authoring rules said about one achievement, or why they could not say anything about it.
Inherited Members
Namespace: Serenity.Achievements.Infrastructure.Editor
Assembly: Serenity.UnityAchievements.Infrastructure.Editor.dll
Syntax
public sealed class AchievementAuthoringJudgement
Remarks
"No findings" and "could not be judged" are opposite answers that a bare list of findings cannot tell apart — an empty list would read as a clean achievement, which is the one thing a broken one must not look like.
Properties
Failed
Declaration
public bool Failed { get; }
Property Value
| Type | Description |
|---|---|
| bool | Whether the rules could not be run over this achievement at all. |
Failure
Declaration
public string Failure { get; }
Property Value
| Type | Description |
|---|---|
| string | Why the rules could not judge this achievement, or null when they did. |
Findings
Declaration
public IReadOnlyList<AuthoringIssue> Findings { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<AuthoringIssue> | What the rules said, never null and always empty when the judgement failed. |
Methods
Of(IReadOnlyList<AuthoringIssue>)
A judgement that was reached.
Declaration
public static AchievementAuthoringJudgement Of(IReadOnlyList<AuthoringIssue> findings)
Parameters
| Type | Name | Description |
|---|---|---|
| IReadOnlyList<AuthoringIssue> | findings | What the rules said. May be null, meaning nothing. |
Returns
| Type | Description |
|---|---|
| AchievementAuthoringJudgement | The judgement. |
Refused(string)
A judgement that could not be reached.
Declaration
public static AchievementAuthoringJudgement Refused(string failure)
Parameters
| Type | Name | Description |
|---|---|---|
| string | failure | Why not, in words the author can act on. |
Returns
| Type | Description |
|---|---|
| AchievementAuthoringJudgement | The judgement. |