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

ProjectVAllianceView class

Everything the Alliance screen draws. It is immutable and always complete: values are computed from the last confirmed data, never from an in-flight request.

Namespace: SilverTiger.ProjectV.Unity.Presentation.Alliance

public sealed class ProjectVAllianceView

Properties​

PropertyTypeDescription
IsLoadingboolTrue only until the first data arrives.
LoadErrorstring?Why the first load failed, for a retry prompt; null otherwise.
AlliesIReadOnlyList<ProjectVAllyView>The allies the player owns.
SelectedAllyIdstring?The ID of the ally the player takes into battle, or null when none is selected.
XpItemsIReadOnlyList<ProjectVXpItemView>EXP items with the amount the player owns.
PendingUpgradeAllyIdstring?The ally whose upgrade awaits confirmation; level changes wait for it.

Methods​

Find(string? allyId)​

Finds an ally by its ID.

public ProjectVAllyView? Find(string? allyId);

Parameters

NameTypeDescription
allyIdstring?The ally ID, as in ProjectVAllyView.Id.

Returns

ProjectVAllyView?: The ally, or null when the player does not own it (or allyId is null).