Chuyển tới nội dung chính

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

NameTypeDescription
kindstringThe reward type.
resourceIdstringThe resource or item given.
amountlongHow many are given.

Exceptions

ExceptionWhen
ArgumentNullExceptionkind or resourceId is null.

Properties​

PropertyTypeDescription
KindstringThe reward type, as set in the game data; use it with ResourceId to choose an icon.
ResourceIdstringThe ID of the resource or item given.
AmountlongHow many are given; for a drop preview, the most a run can drop.