ProjectVCharacterSnapshot class
The Character presenter's state at one moment. Read-only; every change is a new snapshot.
Namespace: SilverTiger.ProjectV.Unity.Presentation.Character
public sealed class ProjectVCharacterSnapshot
Properties
| Property | Type | Description |
|---|---|---|
Status | ProjectVCharacterStatus | What the presenter is doing. |
Data | ProjectVCharacterData? | The last confirmed data; null before the first load. Kept when a later command fails. |
Recovery | ProjectVScreenRecoveryState | Offline, cached and retry hints for the screen, with a message to show. |
Error | ProjectVCharacterError? | Why the last load or command failed, or null. |
HasUsableData | bool | True when there is data to draw, even if the last command failed. |
IsReady | bool | True when the data is loaded and no command is running. |
RequiresUpgradeSync | bool | True after a level-up or other progression change whose result is not confirmed. Balances and requirements may be out of date: sync before offering another upgrade. |
ConfirmedProgressionOutcome | ProjectVCharacterProgressionOutcome | What the server confirmed during the last command, even when the command as a whole reported a failure (for example EXP applied but the screen data could not be refreshed). None otherwise. |
Methods
GetUpgradeState(ProjectVCharacterId characterId)
Works out whether a character can level up now, and if not, why.
public ProjectVCharacterUpgradeState GetUpgradeState(ProjectVCharacterId characterId);
Parameters
| Name | Type | Description |
|---|---|---|
characterId | ProjectVCharacterId | The character to check. |
Returns
ProjectVCharacterUpgradeState: The upgrade state; never null. ProjectVCharacterUpgradeState.CanUpgrade is true when Level Up can be offered, otherwise ProjectVCharacterUpgradeState.Message says why not.