ProjectVAllyView class
One ally the player owns, as the Alliance screen draws it. Read-only.
Namespace: SilverTiger.ProjectV.Unity.Presentation.Alliance
public sealed class ProjectVAllyView
Properties​
| Property | Type | Description |
|---|---|---|
Id | string | The ally's ID; pass it to the IProjectVAllianceScreen commands. |
Level | long | The ally's current level. |
Experience | long | The ally's current EXP. |
Stats | ProjectVCharacterStats | The ally's stats at the current level. |
Upgrade | ProjectVCharacterUpgradeRequirements? | What the next level needs and gives, or null when that is not known. |
IsMaxLevel | bool | True when the ally cannot level up further, or when its next level is not known. |
HasPendingUpgrade | bool | This ally's upgrade awaits confirmation; LevelUpAsync finishes it. |
IsBlockedByPendingUpgrade | bool | Another ally's upgrade awaits confirmation, so this ally's level cannot change yet. |
WeaponSkill | ProjectVCharacterCastSkillUpgradeDetails | The next weapon skill upgrade: cost, effect and whether it can be bought now. |
LevelReset | ProjectVCharacterLevelResetPreview | What resetting the ally to level 1 would refund, and whether the reset is possible now. |
Methods​
PreviewXp(IReadOnlyList<ProjectVCharacterXpItemSelection> items)​
What leveling with these EXP items would do. An empty selection previews the current level.
public ProjectVCharacterXpUpgradePreview PreviewXp(IReadOnlyList<ProjectVCharacterXpItemSelection> items);
Parameters
| Name | Type | Description |
|---|---|---|
items | IReadOnlyList<ProjectVCharacterXpItemSelection> | The EXP items and quantities to preview; may be empty. |
Returns
ProjectVCharacterXpUpgradePreview: The preview with the EXP gained and the resulting level. CanSubmit is false, with a Message to show, when the selection cannot be used or another ally has an upgrade pending.
Exceptions
| Exception | When |
|---|---|
ArgumentNullException | items is null. |
XpForNextLevel()​
The fewest EXP items that reach the next level.
public IReadOnlyList<ProjectVCharacterXpItemSelection> XpForNextLevel();
Returns
IReadOnlyList<ProjectVCharacterXpItemSelection>: The items to pass to IProjectVAllianceScreen.LevelUpAsync; empty when the player cannot reach it or another ally has an upgrade pending.
XpForMaximumLevel()​
EXP items that reach the highest level the player can afford.
public IReadOnlyList<ProjectVCharacterXpItemSelection> XpForMaximumLevel();
Returns
IReadOnlyList<ProjectVCharacterXpItemSelection>: The items to pass to IProjectVAllianceScreen.LevelUpAsync; empty when no level is reachable or another ally has an upgrade pending.