ProjectVCampaignView class
Everything the Campaign screen draws: the confirmed missions, never an in-flight request.
Namespace: SilverTiger.ProjectV.Unity.Presentation.Campaign
public sealed class ProjectVCampaignView
Properties
| Property | Type | Description |
|---|---|---|
IsLoading | bool | True only until the first missions arrive. |
LoadError | string? | Why the first load failed, for a retry prompt; null otherwise. |
Missions | IReadOnlyList<ProjectVCampaignMission> | The missions with their lock state, stars and entry cost. |
TotalStars | long | The player's total stars across all missions; 0 while loading. |
Methods
Find(string? missionId)
Finds a mission by its ID.
public ProjectVCampaignMission? Find(string? missionId);
Parameters
| Name | Type | Description |
|---|---|---|
missionId | string? | The mission ID, as in MissionId.Value. |
Returns
ProjectVCampaignMission?: The mission, or null when the Campaign has no such mission (or missionId is null).