Class CopilotWalkthroughProgress
Which fields and icons of a Copilot walkthrough an author has already marked done by hand.
Inherited Members
Namespace: Serenity.Achievements.Application.Sync
Assembly: Serenity.Achievements.Application.dll
Syntax
public sealed class CopilotWalkthroughProgress
Remarks
Mirrors AchievementSyncReviewSelection's own shape: tracked independently of the scripts themselves, keyed by identity rather than list position, so a script rebuilt from the same accepted plan (for example when the author navigates back to Review and forward again) does not lose ticks that still apply. Purely a UI bookkeeping concern — this type has no opinion about whether a value was actually pasted correctly, only about what the author says they did.
Constructors
CopilotWalkthroughProgress()
Declaration
public CopilotWalkthroughProgress()
Methods
Clear()
Clears every done mark this progress tracks, regardless of which script produced it.
Declaration
public void Clear()
DoneCount(CopilotAchievementScript)
How many of one achievement's field and icon instructions are marked done.
Declaration
public int DoneCount(CopilotAchievementScript script)
Parameters
| Type | Name | Description |
|---|---|---|
| CopilotAchievementScript | script | The achievement script to count against. May be null. |
Returns
| Type | Description |
|---|---|
| int |
IsComplete(CopilotAchievementScript)
Whether every field and icon instruction of one achievement is marked done.
Declaration
public bool IsComplete(CopilotAchievementScript script)
Parameters
| Type | Name | Description |
|---|---|---|
| CopilotAchievementScript | script | The achievement script to check. May be null. |
Returns
| Type | Description |
|---|---|
| bool |
IsFieldDone(string, AchievementSyncFieldKind, string)
Whether one field instruction is currently marked done.
Declaration
public bool IsFieldDone(string apiName, AchievementSyncFieldKind fieldKind, string localeCode)
Parameters
| Type | Name | Description |
|---|---|---|
| string | apiName | |
| AchievementSyncFieldKind | fieldKind | |
| string | localeCode |
Returns
| Type | Description |
|---|---|
| bool |
IsIconDone(string, CopilotIconKind)
Whether one icon instruction is currently marked done.
Declaration
public bool IsIconDone(string apiName, CopilotIconKind kind)
Parameters
| Type | Name | Description |
|---|---|---|
| string | apiName | |
| CopilotIconKind | kind |
Returns
| Type | Description |
|---|---|
| bool |
MarkFieldDone(string, AchievementSyncFieldKind, string)
Marks one field instruction as done.
Declaration
public void MarkFieldDone(string apiName, AchievementSyncFieldKind fieldKind, string localeCode)
Parameters
| Type | Name | Description |
|---|---|---|
| string | apiName | |
| AchievementSyncFieldKind | fieldKind | |
| string | localeCode |
MarkFieldNotDone(string, AchievementSyncFieldKind, string)
Marks one field instruction as not done.
Declaration
public void MarkFieldNotDone(string apiName, AchievementSyncFieldKind fieldKind, string localeCode)
Parameters
| Type | Name | Description |
|---|---|---|
| string | apiName | |
| AchievementSyncFieldKind | fieldKind | |
| string | localeCode |
MarkIconDone(string, CopilotIconKind)
Marks one icon instruction as done.
Declaration
public void MarkIconDone(string apiName, CopilotIconKind kind)
Parameters
| Type | Name | Description |
|---|---|---|
| string | apiName | |
| CopilotIconKind | kind |
MarkIconNotDone(string, CopilotIconKind)
Marks one icon instruction as not done.
Declaration
public void MarkIconNotDone(string apiName, CopilotIconKind kind)
Parameters
| Type | Name | Description |
|---|---|---|
| string | apiName | |
| CopilotIconKind | kind |