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
| Name | Type | Description |
|---|---|---|
objectiveId | string | The objective's ID; not null or blank. |
kind | string | The objective type; see Kind. |
threshold | long? | The target value, or null when the objective has none. |
Exceptions
| Exception | When |
|---|---|
ArgumentException | objectiveId is null or blank. |
ArgumentNullException | kind is null. |
Properties​
| Property | Type | Description |
|---|---|---|
ObjectiveId | string | The objective's ID; matches the entries of ProjectVCampaignMissionStars.BestRunObjectiveIds. |
Kind | string | The 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. |
Threshold | long? | 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. |