ProjectVCharacterXpItemDefinition class
One kind of EXP item: how much EXP it gives and whether it is for characters or allies. Read-only.
Namespace: SilverTiger.ProjectV.Unity.Presentation.Character
public sealed class ProjectVCharacterXpItemDefinition
Constructors
ProjectVCharacterXpItemDefinition(string itemId, long experience, string characterKind, long sortOrder)
Creates an EXP item definition, for example in tests.
public ProjectVCharacterXpItemDefinition(string itemId, long experience, string characterKind = "character", long sortOrder = 0);
Parameters
| Name | Type | Description |
|---|---|---|
itemId | string | The item ID; not empty, at most 128 UTF-8 bytes. |
experience | long | The EXP one item gives; 1 or more. |
characterKind | string | character or ally: who the item can level. |
sortOrder | long | Where the item goes in lists, lowest first; 0 or more. |
Exceptions
| Exception | When |
|---|---|
ArgumentException | itemId is empty or too long, or characterKind is not character or ally. |
ArgumentOutOfRangeException | experience is below 1 or sortOrder is negative. |
Properties
| Property | Type | Description |
|---|---|---|
ItemId | string | The item ID; look up the owned amount in ProjectVCharacterData.Inventory. |
Experience | long | The EXP one item gives. |
CharacterKind | string | character or ally: who the item can level. |
SortOrder | long | Where the item goes in lists, lowest first. |