Chuyển tới nội dung chính

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

NameTypeDescription
resourceIdProjectVResourceIdThe currency or item to pay with, such as core_dust.
amountlongHow much to pay; 1 or more.

Exceptions

ExceptionWhen
ArgumentOutOfRangeExceptionamount is below 1.

Properties​

PropertyTypeDescription
ResourceIdProjectVResourceIdThe currency or item to pay with. Use ProjectVCharacterResourceNames.GetDisplayName for its label.
AmountlongHow much to pay; always 1 or more.