Skip to main content

ProjectVCampaignStarObjective class

One star objective of a Campaign mission; the server decides whether a run met it.

Namespace: SilverTiger.ProjectV.Unity.Presentation.Campaign

public sealed class ProjectVCampaignStarObjective

Constructors​

ProjectVCampaignStarObjective(string objectiveId, string kind, long? threshold)​

Creates a star objective, for example as test data.

public ProjectVCampaignStarObjective(string objectiveId, string kind, long? threshold);

Parameters

NameTypeDescription
objectiveIdstringThe objective's ID; not null or blank.
kindstringThe objective type; see Kind.
thresholdlong?The target value, or null when the objective has none.

Exceptions

ExceptionWhen
ArgumentExceptionobjectiveId is null or blank.
ArgumentNullExceptionkind is null.

Properties​

PropertyTypeDescription
ObjectiveIdstringThe objective's ID; matches the entries of ProjectVCampaignMissionStars.BestRunObjectiveIds.
KindstringThe objective type: complete_stage, duration_at_most_ms, enemies_defeated_min, health_percent_min or stages_cleared_min. Use it to choose the objective text.
Thresholdlong?The target value in the unit the Kind names (milliseconds, enemies, percent or stages), or null when the objective has none, such as complete_stage.