ProjectVCharacterCastSkillCost class
One price line of a cast skill upgrade. Read-only.
Namespace: SilverTiger.ProjectV.Unity.Presentation.Character
public sealed class ProjectVCharacterCastSkillCost
Constructors​
ProjectVCharacterCastSkillCost(ProjectVCharacterCastSkillCostKind kind, ProjectVResourceId resourceId, long amount, string displayName)​
Creates a price line, for example in tests.
public ProjectVCharacterCastSkillCost(ProjectVCharacterCastSkillCostKind kind, ProjectVResourceId resourceId, long amount, string displayName);
Parameters
| Name | Type | Description |
|---|---|---|
kind | ProjectVCharacterCastSkillCostKind | Whether it is paid with an item or a currency. |
resourceId | ProjectVResourceId | The item or currency ID. |
amount | long | How much to pay; 1 or more. |
displayName | string | The name to show for the resource; not empty. |
Exceptions
| Exception | When |
|---|---|
ArgumentOutOfRangeException | kind is not a defined value or amount is below 1. |
ArgumentException | displayName is null, empty or whitespace. |
Properties​
| Property | Type | Description |
|---|---|---|
Kind | ProjectVCharacterCastSkillCostKind | Whether it is paid with an inventory item or a wallet currency. |
ResourceId | ProjectVResourceId | The item or currency ID. |
Amount | long | How much to pay; always 1 or more. |
DisplayName | string | The name to show for the resource, as the server sends it. |