Skip to main content

ProjectVGameplayClientRewardView class

One reward the player picked up, sent with the result when trust client rewards is on. The server grants it only when trust mode is also on there; otherwise it works out rewards itself.

Namespace: SilverTiger.ProjectV.Unity.Presentation.Gameplay

public sealed class ProjectVGameplayClientRewardView

Constructors​

ProjectVGameplayClientRewardView(string itemId, long amount)​

Creates one picked-up reward.

public ProjectVGameplayClientRewardView(string itemId, long amount);

Parameters

NameTypeDescription
itemIdstringThe ID of the item or EXP item; must not be blank and at most 128 bytes of UTF-8.
amountlongHow many were picked up; must be above 0.

Exceptions

ExceptionWhen
ArgumentExceptionitemId is blank or too long.
ArgumentOutOfRangeExceptionamount is 0 or less.

Properties​

PropertyTypeDescription
ItemIdstringThe ID of the item or EXP item.
AmountlongHow many were picked up; always above 0.