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
| Name | Type | Description |
|---|---|---|
itemId | string | The ID of the item or EXP item; must not be blank and at most 128 bytes of UTF-8. |
amount | long | How many were picked up; must be above 0. |
Exceptions
| Exception | When |
|---|---|
ArgumentException | itemId is blank or too long. |
ArgumentOutOfRangeException | amount is 0 or less. |
Properties
| Property | Type | Description |
|---|---|---|
ItemId | string | The ID of the item or EXP item. |
Amount | long | How many were picked up; always above 0. |