ProjectVCharacterUpgradeState class
Whether a character can level up now, and if not, why, with the price next to the player's balances. Get it from ProjectVCharacterSnapshot.GetUpgradeState or ProjectVCharacterView.UpgradeState. Read-only.
Namespace: SilverTiger.ProjectV.Unity.Presentation.Character
public sealed class ProjectVCharacterUpgradeState
Properties​
| Property | Type | Description |
|---|---|---|
BlockReason | ProjectVCharacterUpgradeBlockReason | Why Level Up is blocked; ProjectVCharacterUpgradeBlockReason.None when it is not. |
CanUpgrade | bool | True when Level Up can be offered. |
Message | string | Text to show, such as Ready to level up. or Not enough Character XP: 40/100. |
Requirements | ProjectVCharacterUpgradeRequirements? | What the next level needs; null when the character is not found or the server sent none. |
Experience | long | The character's total EXP now; 0 when the character is not found. |
Balances | IReadOnlyList<ProjectVBalancePreview> | Each price line of the next level next to the player's wallet balance; empty when unknown. |