ProjectVCharacterCost class
One price line: how much of a resource an upgrade costs. Read-only.
Namespace: SilverTiger.ProjectV.Unity.Presentation.Character
public sealed class ProjectVCharacterCost
Constructors​
ProjectVCharacterCost(ProjectVResourceId resourceId, long amount)​
Creates a price line, for example in tests.
public ProjectVCharacterCost(ProjectVResourceId resourceId, long amount);
Parameters
| Name | Type | Description |
|---|---|---|
resourceId | ProjectVResourceId | The currency or item to pay with, such as core_dust. |
amount | long | How much to pay; 1 or more. |
Exceptions
| Exception | When |
|---|---|
ArgumentOutOfRangeException | amount is below 1. |
Properties​
| Property | Type | Description |
|---|---|---|
ResourceId | ProjectVResourceId | The currency or item to pay with. Use ProjectVCharacterResourceNames.GetDisplayName for its label. |
Amount | long | How much to pay; always 1 or more. |