Skip to main content

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

NameTypeDescription
levelintThe level; 1 or more.
requiredTotalExperiencelongThe total EXP needed to reach this level; 0 or more (0 for level 1).
statsProjectVCharacterStatsThe stats at this level.

Exceptions

ExceptionWhen
ArgumentOutOfRangeExceptionlevel is below 1 or requiredTotalExperience is negative.
ArgumentNullExceptionstats is null.

Properties​

PropertyTypeDescription
LevelintThe level.
RequiredTotalExperiencelongThe total EXP, counted from level 1, needed to reach this level.
StatsProjectVCharacterStatsThe stats at this level.