Skip to main content

ProjectVCampaignStarMilestone class

Rewards granted once when a mission's best-run stars reach StarsRequired.

Namespace: SilverTiger.ProjectV.Unity.Presentation.Campaign

public sealed class ProjectVCampaignStarMilestone

Constructors​

ProjectVCampaignStarMilestone(long starsRequired, IReadOnlyList<ProjectVCampaignReward> rewards, bool isClaimed)​

Creates a star milestone, for example as test data.

public ProjectVCampaignStarMilestone(long starsRequired, IReadOnlyList<ProjectVCampaignReward> rewards, bool isClaimed);

Parameters

NameTypeDescription
starsRequiredlongThe best-run stars needed; greater than 0.
rewardsIReadOnlyList<ProjectVCampaignReward>The rewards granted; not null.
isClaimedboolTrue when the player already received the rewards.

Exceptions

ExceptionWhen
ArgumentOutOfRangeExceptionstarsRequired is 0 or less.
ArgumentNullExceptionrewards is null.

Properties​

PropertyTypeDescription
StarsRequiredlongThe best-run stars on this mission needed to earn the rewards.
RewardsIReadOnlyList<ProjectVCampaignReward>The rewards granted when the milestone is reached.
IsClaimedboolTrue when the player already received these rewards.