ProjectVCampaignReward class
One Campaign reward: a star milestone reward or a mission drop.
Namespace: SilverTiger.ProjectV.Unity.Presentation.Campaign
public sealed class ProjectVCampaignReward
Constructors​
ProjectVCampaignReward(string kind, string resourceId, long amount)​
Creates a reward, for example as test data.
public ProjectVCampaignReward(string kind, string resourceId, long amount);
Parameters
| Name | Type | Description |
|---|---|---|
kind | string | The reward type. |
resourceId | string | The resource or item given. |
amount | long | How many are given. |
Exceptions
| Exception | When |
|---|---|
ArgumentNullException | kind or resourceId is null. |
Properties​
| Property | Type | Description |
|---|---|---|
Kind | string | The reward type, as set in the game data; use it with ResourceId to choose an icon. |
ResourceId | string | The ID of the resource or item given. |
Amount | long | How many are given; for a drop preview, the most a run can drop. |