Chuyển tới nội dung chính

ProjectVCharacterSkillTree class

One character's skill tree and its own unspent skill points. Read-only.

Namespace: SilverTiger.ProjectV.Unity.Presentation.Character

public sealed class ProjectVCharacterSkillTree

Constructors​

ProjectVCharacterSkillTree(ProjectVCharacterId characterId, IReadOnlyList<ProjectVCharacterSkill> skills, long levelSkillPoints)​

Creates a skill tree, for example in tests.

public ProjectVCharacterSkillTree(ProjectVCharacterId characterId, IReadOnlyList<ProjectVCharacterSkill> skills, long levelSkillPoints = 0);

Parameters

NameTypeDescription
characterIdProjectVCharacterIdThe character the tree belongs to.
skillsIReadOnlyList<ProjectVCharacterSkill>The tree's skills; each skill ID at most once.
levelSkillPointslongThe character's own unspent skill points; 0 or more.

Exceptions

ExceptionWhen
ArgumentNullExceptionskills is null.
ArgumentExceptionskills has the same skill twice.
ArgumentOutOfRangeExceptionlevelSkillPoints is negative.

Properties​

PropertyTypeDescription
CharacterIdProjectVCharacterIdThe character this tree belongs to.
SkillsIReadOnlyList<ProjectVCharacterSkill>The tree's skills, each at most once.
LevelSkillPointslongThe character's own unspent skill points; its tree spends them before the wallet's.