Chuyển tới nội dung chính

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​

PropertyTypeDescription
BlockReasonProjectVCharacterUpgradeBlockReasonWhy Level Up is blocked; ProjectVCharacterUpgradeBlockReason.None when it is not.
CanUpgradeboolTrue when Level Up can be offered.
MessagestringText to show, such as Ready to level up. or Not enough Character XP: 40/100.
RequirementsProjectVCharacterUpgradeRequirements?What the next level needs; null when the character is not found or the server sent none.
ExperiencelongThe character's total EXP now; 0 when the character is not found.
BalancesIReadOnlyList<ProjectVBalancePreview>Each price line of the next level next to the player's wallet balance; empty when unknown.