ProjectVCampaignData class
The Campaign missions and the player's total stars. Read-only; a change arrives as a new instance.
Namespace: SilverTiger.ProjectV.Unity.Presentation.Campaign
public sealed class ProjectVCampaignData
Constructors​
ProjectVCampaignData(IReadOnlyList<ProjectVCampaignMission> missions, long totalStars)​
Creates Campaign data, for example as test data.
public ProjectVCampaignData(IReadOnlyList<ProjectVCampaignMission> missions, long totalStars = 0);
Parameters
| Name | Type | Description |
|---|---|---|
missions | IReadOnlyList<ProjectVCampaignMission> | The missions; not null. |
totalStars | long | The player's total stars across all missions; 0 or more. |
Exceptions
| Exception | When |
|---|---|
ArgumentNullException | missions is null. |
ArgumentOutOfRangeException | totalStars is negative. |
Properties​
| Property | Type | Description |
|---|---|---|
Missions | IReadOnlyList<ProjectVCampaignMission> | The missions, with the player's progress on each. |
TotalStars | long | The sum of best-run stars across all missions, as confirmed by the server. |
IsEmpty | bool | True when there are no missions. |