Skip to main content

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

NameTypeDescription
idProjectVResourceIdThe currency or item ID.
amountlongThe amount owned; 0 or more.

Exceptions

ExceptionWhen
ArgumentOutOfRangeExceptionamount is negative.

Properties​

PropertyTypeDescription
IdProjectVResourceIdThe currency or item ID, such as core_dust.
AmountlongThe amount owned.