ProjectVCharacterResource class
How much of one currency or item the player owns. Read-only.
Namespace: SilverTiger.ProjectV.Unity.Presentation.Character
public sealed class ProjectVCharacterResource
Constructors​
ProjectVCharacterResource(ProjectVResourceId id, long amount)​
Creates a resource amount, for example in tests.
public ProjectVCharacterResource(ProjectVResourceId id, long amount);
Parameters
| Name | Type | Description |
|---|---|---|
id | ProjectVResourceId | The currency or item ID. |
amount | long | The amount owned; 0 or more. |
Exceptions
| Exception | When |
|---|---|
ArgumentOutOfRangeException | amount is negative. |
Properties​
| Property | Type | Description |
|---|---|---|
Id | ProjectVResourceId | The currency or item ID, such as core_dust. |
Amount | long | The amount owned. |