Skip to main content

ProjectVCharacterEntry class

One owned character or ally: level, EXP, stats and what its next level needs. Read-only.

Namespace: SilverTiger.ProjectV.Unity.Presentation.Character

public sealed class ProjectVCharacterEntry

Constructors​

ProjectVCharacterEntry(ProjectVCharacterId id, ProjectVCharacterKind kind, long level, long experience, ProjectVCharacterStats stats)​

Creates an entry without upgrade data, for example in tests.

public ProjectVCharacterEntry(ProjectVCharacterId id, ProjectVCharacterKind kind, long level, long experience, ProjectVCharacterStats stats);

Parameters

NameTypeDescription
idProjectVCharacterIdThe character's ID.
kindProjectVCharacterKindCharacter or ally; see ProjectVCharacterKinds.
levellongThe current level; 1 or more.
experiencelongThe character's total EXP; 0 or more.
statsProjectVCharacterStatsThe stats at the current level.

Exceptions

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

ProjectVCharacterEntry(ProjectVCharacterId id, ProjectVCharacterKind kind, long level, long experience, ProjectVCharacterStats stats, ProjectVCharacterUpgradeRequirements? upgrade, IReadOnlyList<ProjectVCharacterLevelStep>? levelPath, ProjectVCharacterLevelResetRequirements? levelReset)​

Creates an entry, for example in tests. The SDK builds these for you from server data.

public ProjectVCharacterEntry(ProjectVCharacterId id, ProjectVCharacterKind kind, long level, long experience, ProjectVCharacterStats stats, ProjectVCharacterUpgradeRequirements? upgrade, IReadOnlyList<ProjectVCharacterLevelStep>? levelPath = null, ProjectVCharacterLevelResetRequirements? levelReset = null);

Parameters

NameTypeDescription
idProjectVCharacterIdThe character's ID.
kindProjectVCharacterKindCharacter or ally; see ProjectVCharacterKinds.
levellongThe current level; 1 or more.
experiencelongThe character's total EXP; 0 or more.
statsProjectVCharacterStatsThe stats at the current level.
upgradeProjectVCharacterUpgradeRequirements?What the next level needs, or null when the server sent no requirements.
levelPathIReadOnlyList<ProjectVCharacterLevelStep>?Every level from 1 to the maximum, in order; null or empty when unknown.
levelResetProjectVCharacterLevelResetRequirements?Whether the level can be reset and what it refunds; null when unknown.

Exceptions

ExceptionWhen
ArgumentOutOfRangeExceptionlevel is below 1 or experience is negative.
ArgumentNullExceptionstats is null.
ArgumentExceptionlevelPath has more than 4096 steps or a null step, is not numbered 1, 2, 3 …, or its EXP goes down.

Properties​

PropertyTypeDescription
IdProjectVCharacterIdThe character's ID. Pass Id.Value to the screen commands.
KindProjectVCharacterKindWhether this is a playable character or an ally; compare with ProjectVCharacterKinds.
LevellongThe current level, starting at 1.
ExperiencelongThe character's total EXP, counted from level 1.
StatsProjectVCharacterStatsThe stats at the current level.
UpgradeProjectVCharacterUpgradeRequirements?What the next level needs and gives; null when the server sent no requirements, so hide Level Up.
LevelPathIReadOnlyList<ProjectVCharacterLevelStep>Every level from 1 to the maximum, with its total EXP and stats, for level previews. Empty when the server did not send it.
LevelResetProjectVCharacterLevelResetRequirements?Whether the level can be reset and which EXP items it refunds; null when unknown.