ProjectVCharacterLevelStep class
One level of a character's level path: the total EXP it needs and the stats it gives. Read-only.
Namespace: SilverTiger.ProjectV.Unity.Presentation.Character
public sealed class ProjectVCharacterLevelStep
Constructors​
ProjectVCharacterLevelStep(int level, long requiredTotalExperience, ProjectVCharacterStats stats)​
Creates a level step, for example in tests.
public ProjectVCharacterLevelStep(int level, long requiredTotalExperience, ProjectVCharacterStats stats);
Parameters
| Name | Type | Description |
|---|---|---|
level | int | The level; 1 or more. |
requiredTotalExperience | long | The total EXP needed to reach this level; 0 or more (0 for level 1). |
stats | ProjectVCharacterStats | The stats at this level. |
Exceptions
| Exception | When |
|---|---|
ArgumentOutOfRangeException | level is below 1 or requiredTotalExperience is negative. |
ArgumentNullException | stats is null. |
Properties​
| Property | Type | Description |
|---|---|---|
Level | int | The level. |
RequiredTotalExperience | long | The total EXP, counted from level 1, needed to reach this level. |
Stats | ProjectVCharacterStats | The stats at this level. |