Skip to main content

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

NameTypeDescription
kindProjectVCharacterCastSkillCostKindWhether it is paid with an item or a currency.
resourceIdProjectVResourceIdThe item or currency ID.
amountlongHow much to pay; 1 or more.
displayNamestringThe name to show for the resource; not empty.

Exceptions

ExceptionWhen
ArgumentOutOfRangeExceptionkind is not a defined value or amount is below 1.
ArgumentExceptiondisplayName is null, empty or whitespace.

Properties​

PropertyTypeDescription
KindProjectVCharacterCastSkillCostKindWhether it is paid with an inventory item or a wallet currency.
ResourceIdProjectVResourceIdThe item or currency ID.
AmountlongHow much to pay; always 1 or more.
DisplayNamestringThe name to show for the resource, as the server sends it.