ProjectVCharacterSkillPrerequisite class
A rank another skill must reach before a skill can rank up. Read-only.
Namespace: SilverTiger.ProjectV.Unity.Presentation.Character
public sealed class ProjectVCharacterSkillPrerequisite
Constructors​
ProjectVCharacterSkillPrerequisite(ProjectVCharacterSkillId skillId, long requiredRank, long currentRank)​
Creates a prerequisite, for example in tests.
public ProjectVCharacterSkillPrerequisite(ProjectVCharacterSkillId skillId, long requiredRank, long currentRank);
Parameters
| Name | Type | Description |
|---|---|---|
skillId | ProjectVCharacterSkillId | The skill that must rank up first. |
requiredRank | long | The rank it must reach; 1 or more. |
currentRank | long | Its rank now; 0 or more. |
Exceptions
| Exception | When |
|---|---|
ArgumentOutOfRangeException | requiredRank is below 1 or currentRank is negative. |
Properties​
| Property | Type | Description |
|---|---|---|
SkillId | ProjectVCharacterSkillId | The skill that must rank up first. |
RequiredRank | long | The rank it must reach. |
CurrentRank | long | Its rank now. |
IsSatisfied | bool | True when CurrentRank has reached RequiredRank. |