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
| Name | Type | Description |
|---|---|---|
characterId | ProjectVCharacterId | The character the tree belongs to. |
skills | IReadOnlyList<ProjectVCharacterSkill> | The tree's skills; each skill ID at most once. |
levelSkillPoints | long | The character's own unspent skill points; 0 or more. |
Exceptions
| Exception | When |
|---|---|
ArgumentNullException | skills is null. |
ArgumentException | skills has the same skill twice. |
ArgumentOutOfRangeException | levelSkillPoints is negative. |
Properties
| Property | Type | Description |
|---|---|---|
CharacterId | ProjectVCharacterId | The character this tree belongs to. |
Skills | IReadOnlyList<ProjectVCharacterSkill> | The tree's skills, each at most once. |
LevelSkillPoints | long | The character's own unspent skill points; its tree spends them before the wallet's. |