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​
| Property | Type | Description |
|---|---|---|
IsLoading | bool | True only until the first data arrives. |
LoadError | string? | Why the first load failed, for a retry prompt; null otherwise. |
Allies | IReadOnlyList<ProjectVAllyView> | The allies the player owns. |
SelectedAllyId | string? | The ID of the ally the player takes into battle, or null when none is selected. |
XpItems | IReadOnlyList<ProjectVXpItemView> | EXP items with the amount the player owns. |
PendingUpgradeAllyId | string? | 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
| Name | Type | Description |
|---|---|---|
allyId | string? | The ally ID, as in ProjectVAllyView.Id. |
Returns
ProjectVAllyView?: The ally, or null when the player does not own it (or allyId is null).