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

ProjectVAllianceData class

The Alliance data at one moment: the player's allies, the selected ally, and the EXP items and resources used to level them. Read-only; a change arrives as a new instance.

Namespace: SilverTiger.ProjectV.Unity.Presentation.Alliance

public sealed class ProjectVAllianceData

Properties​

PropertyTypeDescription
AlliesIReadOnlyList<ProjectVCharacterEntry>The allies the player owns, with level, EXP and stats.
SelectedAllyIdProjectVCharacterId?The ally the player takes into battle, or null when none is selected.
InventoryIReadOnlyList<ProjectVCharacterResource>The player's resources and items, including owned EXP items.
XpItemsIReadOnlyList<ProjectVCharacterXpItemDefinition>The EXP items that can level an ally and how much EXP each one gives.

Methods​

GetCastSkillUpgradeDetails(ProjectVCharacterId allyId, ProjectVCharacterCastSkillSlot slot)​

Describes the next upgrade of one of an ally's skills: cost, effect and whether it can be bought now.

public ProjectVCharacterCastSkillUpgradeDetails GetCastSkillUpgradeDetails(ProjectVCharacterId allyId, ProjectVCharacterCastSkillSlot slot);

Parameters

NameTypeDescription
allyIdProjectVCharacterIdThe ID of an ally in Allies.
slotProjectVCharacterCastSkillSlotThe skill to look at, such as ProjectVCharacterCastSkillSlot.Weapon.

Returns

ProjectVCharacterCastSkillUpgradeDetails: The upgrade details; check CanUpgrade and show BlockedMessage when it is false.