Skip to main content

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​

PropertyTypeDescription
IsLoadingboolTrue only until the first missions arrive.
LoadErrorstring?Why the first load failed, for a retry prompt; null otherwise.
MissionsIReadOnlyList<ProjectVCampaignMission>The missions with their lock state, stars and entry cost.
TotalStarslongThe 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

NameTypeDescription
missionIdstring?The mission ID, as in MissionId.Value.

Returns

ProjectVCampaignMission?: The mission, or null when the Campaign has no such mission (or missionId is null).